Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix sign error in eci to ecf conversion #3

Merged
merged 2 commits into from
Jul 25, 2020
Merged

Fix sign error in eci to ecf conversion #3

merged 2 commits into from
Jul 25, 2020

Conversation

PenguinSnail
Copy link
Contributor

When converting between eci and ecf, there should be a + in the x coordinate line, not a -
See here: https://github.com/shashwatak/satellite-js/blob/09b49aa6aa8962c0f954f79dd84c25ee27e453b0/src/transforms.js#L126

I've been using this js port daily for the past year now and all the observations with it have been accurate confirmed by recording broadcasts from satellites, but when I tried to use this library the angle of elevation was extremely off at every timestamp I tried. I managed to track the error down to this one sign error, and after changing it the angle of elevation in observations have worked perfectly.

I also added the GMST parameter to the eci_to_ecf function in the readme because it took me a little while to realize it was missing and that also affects the reported angles, so it would be nice to have that included in the readme example.

@richinfante
Copy link
Owner

Good catch - thank you!

@richinfante richinfante merged commit 27e4b11 into richinfante:master Jul 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants