I see that UACS Cargo does what I want. You drop the package and it lands.
the UACS code is here: https://github.com/abdullah-radwan/UACS/tree/master
The best I can tell if ground contact??? then set the vs state to 1 landed.
if (!GetFlightStatus() && GroundContact()) { VECTOR3 angAcc; GetAngularAcc(angAcc);
if (length(angAcc) < 0.5) { VESSELSTATUS2 status = GetVesselStatus(this); status.status = 1;
So I have this as I understand if on the ground then make it landed, right? It lands good but still moves void LEVA::clbkPreStep(double simt, double simdt, double mjd) { { VESSELSTATUS2 vs; memset(&vs, 0, sizeof(vs)); vs.version = 2; GetStatusEx(&vs); if (GroundContact() == true) vs.status = 1; // Landed DefSetStateEx(&vs2); } }
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.