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

Modified Equinoctical elements definition changes at 90 deg inclination for conversion from cartesian #174

Closed
FrankHogervorst opened this issue Apr 7, 2017 · 7 comments

Comments

@FrankHogervorst
Copy link
Contributor

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.

@magnific0
Copy link
Member

magnific0 commented Apr 11, 2017

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.
For polar orbits you are far away enough from the tan(pi/2) singularity that you can use either MEE definitions without any problems. I'd recommended to use just the standard (posigrade) formulations for most inclinations, unless you come close to 180.

@FrankHogervorst
Copy link
Contributor Author

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.

@magnific0
Copy link
Member

Which conversion function are you referring to? This one takes a boolean flag that needs to be set manually.

@FrankHogervorst FrankHogervorst changed the title Modified Equinoctical elements definition changes at 90 deg inclination for conversion from keplerian elements Modified Equinoctical elements definition changes at 90 deg inclination for conversion from cartesian Apr 11, 2017
@FrankHogervorst
Copy link
Contributor Author

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.

@magnific0
Copy link
Member

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.

@FrankHogervorst
Copy link
Contributor Author

@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.

@DominicDirkx
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants