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

Add missing degree to radian conversion #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tvoverbeek
Copy link

When running the code I saw the moon-earth-sun positions where not on a single line as expected for a full moon day (2022-08-12). After checking the calculations with the example in https://www.stjarnhimlen.se/comp/tutorial.html#5 I found the missing conversion from degrees to radians in celestial_bodies() in solar.cpp.
With the conversion added I get the correct positions for a full moon and the equinoxes.
The sister project for the pico has the conversion included.

When running the code I saw the moon-earth-sun positions where not on a single line as expected for a full moon day (2022-08-12). After checking the calculations with the example in https://www.stjarnhimlen.se/comp/tutorial.html#5 I found the missing conversion from degrees to radians in celestial_bodies() in solar.cpp.
With thr converion added I get the correct positions for a full moon and the equinoxes.
The sister project for the pico has the conversion included.
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.

1 participant