-
Notifications
You must be signed in to change notification settings - Fork 143
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
Modified Equinoctical elements definition changes at 90 deg inclination for conversion from cartesian #174
Comments
Hi @FrankHogervorst, can you elaborate a bit? I think the current implementation takes all scenarios properly into account. The singularity for Keplerian elements is at an inclination of 0 and 180 degrees. The definition of the MEEs is indeed different for posigrade and retrograde orbits, but does not strictly "change" at 90 degrees. You will of course have to use the retrograde definition if your inclination is close to 180 deg. |
I discussed this issue with @DominicDirkx. He warned me that the conversion function automatically switches to the retrograde definition if the inclination is larger than 90 degrees and back to the posigrade definition for inclinations smaller than 90 degrees. |
Which conversion function are you referring to? This one takes a boolean flag that needs to be set manually. |
I'm sorry, I meant the conversion from cartesian to Modified Equinoctial Elements, which calls the one you refer to but automatically fills in the boolean flag. |
There is indeed the function that tries to guess the most suitable MEE formulation (posi- or retrograde), which would indeed not be advisable for a polar orbit. However, there is still the same function, but with a manual flag. So what exactly is the use case that's causing issues? Is this related to #165? In general don't use the automatic code, it probably shouldn't exist (different discussion). Also be aware that your MEE state consists of 7 (not 6) variables, you need the flag to define your orbit. If you properly keep track of the value of the flag even with automatic switching you should never run into issue. |
@DominicDirkx asked me to create this issue when we were talking about using modified equinoctial elements. It could indeed be related to #165. Maybe Dominic can clear things up on this point? For me it is clear now how I can avoid potential problems for polar orbits by using the manual flag. |
To finalize this issue: I've added a note in the Doxygen for these function functions to make it explicit that the 7th element is selected automatically. |
The Modified Equinoctical elements definition changes at 90 deg inclination for conversion from keplerian elements. This could pose a problem for polar orbit using the result of this conversion.
The text was updated successfully, but these errors were encountered: