]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/JSBSim/FGTrimLong.cpp
builddir -> srcdir so builds can be done outside the master source directory.
[flightgear.git] / src / FDM / JSBSim / FGTrimLong.cpp
index 91f0a29f1b56c5faf54288156646016458eaa71a..7bc91686ae0de5affb5b59420e25f8833f4a6385 100644 (file)
@@ -406,7 +406,9 @@ bool FGTrimLong::DoTrim(void) {
         if(checkLimits(udotf,dth,0,1) == false) {
           cout << "    Sorry, udot doesn't appear to be trimmable" << endl;
           cout << "    Resetting throttles to zero" << endl;
+          setThrottlesPct(0);
           fdmex->GetFCS()->SetThrottleCmd(-1,0);
+          fdmex->RunIC(fgic);
           total_its=k;
           k=Ncycles; //force the trim to fail
         }