API Question Getting O2 partial pressure

thepenguin

Flying Penguin
Addon Developer
Joined
Jul 27, 2013
Messages
220
Reaction score
2
Points
16
Location
Earth-Moon Lagrange Point (L4)
By my understanding of the documentation, this should give me the atmospheric partial pressure of oxygen. However, when I try to run it on earth, all I get is a value of 0. (I would expect a value of roughly 0.21)

Code:
const OBJHANDLE hBody = GetParent()->GetAtmRef();
const ATMCONST *atm = (hBody ? oapiGetPlanetAtmConstants (hBody) : 0);
LogDouble(atm->O2pp);

What's wrong? I have double-checked the docs, and I can't see any typos. Is there something wrong with my code, or is the problem with the earth's atmospheric model?
 
I think this feature was never implemented yet.
 
Back
Top