]> git.mxchange.org Git - flightgear.git/commitdiff
#798: Betrand Coconnier: Fix setting initial vertical speed with JSBSim
authorThorstenB <brehmt@gmail.com>
Sun, 15 Jul 2012 13:23:46 +0000 (15:23 +0200)
committerThorstenB <brehmt@gmail.com>
Sun, 15 Jul 2012 13:23:46 +0000 (15:23 +0200)
src/FDM/JSBSim/JSBSim.cxx

index 53c394ed7494abbf07be53c95fd60fe56134488e..c716f77344e514f9c624d88a0778db93d095838c 100644 (file)
@@ -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 {