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
Restore drawing of orbits on open KeplerOrbits. #3359
Conversation
Great PR! Please pay attention to the following items before merging: Files matching
This is an automatically generated QA checklist based on modified files. |
It seems also closed KeplerOrbits are not plotted :-( |
OK, I hope it's done. |
Sometimes orbits near perihelion is ugly - is it possible doing them smooth within current PR? |
This was always ugly with discrete time intervals and highly elongated ellipses: 2nd law of Kepler... |
The same Kepler's law could be used for smarter discretization. Not necessarily numerically exactly, but at least by estimating the expected length of the orbit segment vs time slice. |
Yes, I think it could work to vary eccentric anomaly with regular steps (not time, just regular angular intervals between the angles for begin and end of requested interval) and find true anomaly from that. Or vary true anomaly. Probably the KeplerOrbit class must learn to do that. |
Hello @gzotti! Please check the fresh version (development snapshot) of Stellarium: |
Hello @gzotti! Please check the latest stable version of Stellarium: |
Description
It seems that a change in the orbit code in 2021 suppressed drawing of Kepler orbits.
This should fix it. Objects on Kepler orbits are drawn orbit_good days around the epoch date.
Another thing to fix here is the removal of the entry "orbit_visualization_period" in ssystem_*.ini.
For closed orbits with special functions, this should be equal to orbit_period.
For Kepler orbits, this is governed by orbit_good, or orbital period computed from the elements.
Fixes # (issue)
Screenshots (if appropriate):
Type of change
How Has This Been Tested?
Test Configuration:
Checklist: