From: ThorstenB Date: Sun, 15 Jul 2012 13:23:46 +0000 (+0200) Subject: #798: Betrand Coconnier: Fix setting initial vertical speed with JSBSim X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d5c56cdffabf0a273fb03c220349bd64f8e6c80a;p=flightgear.git #798: Betrand Coconnier: Fix setting initial vertical speed with JSBSim --- diff --git a/src/FDM/JSBSim/JSBSim.cxx b/src/FDM/JSBSim/JSBSim.cxx index 53c394ed7..c716f7734 100644 --- a/src/FDM/JSBSim/JSBSim.cxx +++ b/src/FDM/JSBSim/JSBSim.cxx @@ -1171,7 +1171,7 @@ void FGJSBsim::set_Climb_Rate( double roc) //since both climb rate and flight path angle are set in the FG //startup sequence, something is needed to keep one from cancelling //out the other. - if( !(fabs(roc) > 1 && fabs(fgic->GetFlightPathAngleRadIC()) < 0.01) ) { + if( fabs(roc) > 1 && fabs(fgic->GetFlightPathAngleRadIC()) < 0.01 ) { if (needTrim) fgic->SetClimbRateFpsIC(roc); else {