I think I fixed the TD issue. new dll for capsule. Not sure why we are getting ctd sometimes of dettachment.
Not sure why this code is not working?
void BOLAUNCHTABLE::clbkPreStep(double SimT, double SimDT, double MJD) {
//OBJHANDLE hvessel = oapiGetVesselByName("BlueOrigin/NewShephard"); //or whatever it is
VESSEL3* v;
OBJHANDLE hvessel = GetAttachmentStatus(PAD1);
thrust = (v->GetThrusterLevel(hvessel));
sprintf(oapiDebugString(), "rockettHRUST %0.4f thrustholdtime %0.4f", thrust,thrustholdtime);
if (thrust > 0.95)
{
thrustholdtime -= simdt;
if (thrustholdtime <= 0.0)
{
DetachChild(PAD1);
}
}
else
{
thrustholdtime = 3.0;
}
}
it does not show the thrust and thrustimehold is 3.0
Not sure why this code is not working?
void BOLAUNCHTABLE::clbkPreStep(double SimT, double SimDT, double MJD) {
//OBJHANDLE hvessel = oapiGetVesselByName("BlueOrigin/NewShephard"); //or whatever it is
VESSEL3* v;
OBJHANDLE hvessel = GetAttachmentStatus(PAD1);
thrust = (v->GetThrusterLevel(hvessel));
sprintf(oapiDebugString(), "rockettHRUST %0.4f thrustholdtime %0.4f", thrust,thrustholdtime);
if (thrust > 0.95)
{
thrustholdtime -= simdt;
if (thrustholdtime <= 0.0)
{
DetachChild(PAD1);
}
}
else
{
thrustholdtime = 3.0;
}
}
it does not show the thrust and thrustimehold is 3.0


