- Joined
- Oct 16, 2007
- Messages
- 1,886
- Reaction score
- 11
- Points
- 0
- Location
- USA-WA
- Website
- www.orbiter-forum.com
Using this;
with the API ref saying;
[math]-\pi < x > \pi[/math]
Why am I getting insane numbers like 1 trillion+?
Code:
DLLCLBK void opcPostStep(double simt, double simdt, double mjd)
{
OBJHANDLE oh = oapiGetFocusObject();
VESSEL * v = oapiGetVesselInterface(oh);
VESSELSTATUS2 tmp;
v->GetStatusEx(&tmp);
sprintf (oapiDebugString(), "%f, %f", tmp.surf_lat,tmp.surf_lng);
}
Shouldn't the results be...?surf_lng longitude: vessel position in equatorial coordinates of rbody [rad]
surf_lat latitude: vessel position in equatorial coordinates of rbody [rad]
[math]-\pi < x > \pi[/math]
Why am I getting insane numbers like 1 trillion+?
