API Question How does Orbiter calculate the equatorial radius?

indy91

Addon Developer
Addon Developer
Joined
Oct 26, 2011
Messages
1,228
Reaction score
603
Points
128
Or is there any way to get the equatorial radius with the API? The function oapiGetSize() returns the mean radius.

The equatorial radius is used in Orbiter to calculate the gravitational potential. The gravity.pdf in the Technotes folder still says it uses the mean radius, but I think that is outdated. The API Reference document says it is the equatorial radius.

I think I know how to calculate it with the perturbation coefficient J2 and mean radius, but that seems like a rather complicated way (aka quartic function).
 
Top