1
0
Fork 0

On-ground trimming needs fdmex active while in-air trimming does not for reliable operation. This might be a problem within the trimming routines but for now this works.

This commit is contained in:
Erik Hofman 2020-01-23 11:54:33 +01:00
parent 1cc0d9e97f
commit cf5bfc5dd9

View file

@ -462,11 +462,17 @@ void FGJSBsim::init()
fgic->SetVNorthFpsIC(gndVelNED(1));
fgic->SetVEastFpsIC(gndVelNED(2));
fgic->SetVDownFpsIC(gndVelNED(3));
fdmex->Resume();
do_trim();
}
else
{
do_trim();
fdmex->Resume();
}
do_trim();
needTrim = false;
fdmex->Setdt( delta_t );
fdmex->Resume();
needTrim = false;
}
copy_from_JSBsim(); //update the bus