API Question Getting O2 partial pressure

thepenguin

Flying Penguin
Addon Developer
Joined
Jul 27, 2013
Messages
220
Reaction score
1
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?
 

Urwumpe

Not funny anymore
Addon Developer
Donator
Joined
Feb 6, 2008
Messages
37,615
Reaction score
2,336
Points
203
Location
Wolfsburg
Preferred Pronouns
Sire
I think this feature was never implemented yet.
 
Top