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)
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?
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?