oapiGetRelativePos(FocusObject, ReferenceObject, &StarReferenceVector);
oapiGetRelativePos(FocusObject, SelectedObject, &StarSelectedVector);
StarAngle = acos((StarSelectedVector.x * StarReferenceVector.x + StarSelectedVector.y * StarReferenceVector.y + StarSelectedVector.z * StarReferenceVector.z) / (length(StarSelectedVector) * length(StarReferenceVector))) - PI05;
StarReferenceAngle = acos(oapiGetSize(ReferenceObject) / length(StarReferenceVector)); // Angle of horizon
if (StarAngle + StarReferenceAngle < 0)
sprintf(StarIsOverHorizon, "Under");
else sprintf(StarIsOverHorizon, "Over");
Sorry for not being very clear with my question. I mean the elevation angle between the chaser and the target during orbit phasing for rendezvous operations
manual method: Surface MFD, Read elevation on the pitch scale.
Not sure I understand:I guess what you mean is you first need to point your nose (X axis) towards the target and then read your Pitch value which in a LVLH frame equals to the elev angle, is that correct?
If this is the way how can I do that with SSU in MM201 UNIVPTG? AFAIK TGT ID 1 (Orbit target) is not implemented yet...
Ah, you mean especially in SSU. Again, unless you need especially accurate calculations, you can do this by three methods right now:
- Rendezvouz radar
- HUD
- COAS.
The first one should be more accurate, but requires more math