Interceptor
Well-known member
Why is it that when I enter the moon as a target,or Inc,Lan my target is called LaunchMFD-Probe-plus my ships name?
#ifndef SPACEMATHORBITER_H
#define SPACEMATHORBITER_H
#include <orbitersdk.h>
#include <kost.h>
class SpaceMathOrbiter
{
public:
...
struct ElementsOrbitParam;
ElementsOrbitParam GetElements( const OBJHANDLE hObj, const OBJHANDLE hRef, int frame );
...
};
struct SpaceMathOrbiter::ElementsOrbitParam
{
ElementsOrbitParam( const kostElements & pel, const kostOrbitParam & pop );
kostElements el;
kostOrbitParam op;
};
#endif
// ElementsOrbitParam constructor
SpaceMathOrbiter::ElementsOrbitParam::ElementsOrbitParam( const kostElements & pel, const kostOrbitParam & pop )
{
el = pel;
op = pop;
}
SpaceMathOrbiter::ElementsOrbitParam SpaceMathOrbiter::GetElements( const OBJHANDLE hObj, const OBJHANDLE hRef, int frame )
{
kostStateVector stateVec;
oapiGetRelativePos(hObj, hRef, &stateVec.pos);
oapiGetRelativeVel(hObj, hRef, &stateVec.vel);
if ( frame == FRAME_EQU )
{
MATRIX3 rot;
oapiGetPlanetObliquityMatrix (hRef, &rot);
// Rotate to get state vector in equatorial frame
stateVec.pos = tmul (rot, stateVec.pos);
stateVec.vel = tmul (rot, stateVec.vel);
}
// Orbiter uses left hand coordinates. Accommodate KOST.
std::swap(stateVec.pos.y, stateVec.pos.z);
std::swap(stateVec.vel.y, stateVec.vel.z);
double mi = oapiGetMass(hRef) * GGRAV;
kostElements el; kostOrbitParam op;
kostStateVector2Elements(mi, &stateVec, &el, &op);
return ElementsOrbitParam( el, op );
}
I also can confirm Enjo.I cannot target celesital bodies. I tried to target the Moon and nothing happens, it just says manual target.
Also, was something changed in the HUD code? It didn't show up this last time I used it.
Yes on both.Is your latitude smaller than Moon's inclination?
Have you enabled HUDDrawer module? (it should be there)
Is your latitude smaller than Moon's inclination?
Have you enabled HUDDrawer module? (it should be there)
KSC's latitude is greater than the Moon's inclination. You can check it on Map MFD.And as for the latitude, I am quite certain, I am launching from KSC.
KSC's latitude is greater than the Moon's inclination. You can check it on Map MFD.
And,I am getting the same results when launching from KourouCSG too.Wait, I am confused. I often wait to launch till when the Moons path is at or above KSC, so I assumed then that my latitude is within the Moon's inclination.
Moon's inclination is slightly below KSC's latitude. Orbit MFD can show you this in a numerical manner in the equatorial frame.