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:
parent
1cc0d9e97f
commit
cf5bfc5dd9
1 changed files with 9 additions and 3 deletions
|
@ -462,11 +462,17 @@ void FGJSBsim::init()
|
||||||
fgic->SetVNorthFpsIC(gndVelNED(1));
|
fgic->SetVNorthFpsIC(gndVelNED(1));
|
||||||
fgic->SetVEastFpsIC(gndVelNED(2));
|
fgic->SetVEastFpsIC(gndVelNED(2));
|
||||||
fgic->SetVDownFpsIC(gndVelNED(3));
|
fgic->SetVDownFpsIC(gndVelNED(3));
|
||||||
}
|
|
||||||
do_trim();
|
|
||||||
needTrim = false;
|
|
||||||
fdmex->Setdt( delta_t );
|
|
||||||
fdmex->Resume();
|
fdmex->Resume();
|
||||||
|
do_trim();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
do_trim();
|
||||||
|
fdmex->Resume();
|
||||||
|
}
|
||||||
|
fdmex->Setdt( delta_t );
|
||||||
|
needTrim = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
copy_from_JSBsim(); //update the bus
|
copy_from_JSBsim(); //update the bus
|
||||||
|
|
Loading…
Add table
Reference in a new issue