Retrieve from where? Orbiters SDK? From the state vector of a vessel? Or by looking into Orbit MFD?
And yes: It is Apoapsis and periapsis unless you are interested into a special celestial body like Earth. So, if you are interested into the apogee of a probe orbiting mars, most sane people will tell you the apoareion (the apoapsis of Mars). Correct people might feel compelled to give you hints how to calculate the osculating elements of this probe relative to Earth and how to calculate the apogee of these osculating elements.
Sorry, maybe I was a not precise enough and, yes i ment Apoapsis and Periapsis retrieval from orbiter SDK. But it was just a question. No compulsory answer or explanation
You have two options: Just retrieve the current Kepler elements by using "GetElements()". And work with the values of these. Or calculate these elements yourself by using the state vector (velocity and position relative to Earth).
When you have the elements, you can calculate apoapsis and periapsis distance. The next step for apsis distance is then subtracting the planet radius below each apsis. Thats simple for a spherical abstraction. And a tiny challenge when you use a WGS-84 ellipsoid.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.