]> git.mxchange.org Git - flightgear.git/commitdiff
Tentative to fix JSBSim bug SF #115 : don't compute cl-squared when qbar is too low...
authorBertrand Coconnier <bcoconni@users.sourceforge.net>
Fri, 27 May 2016 11:50:35 +0000 (13:50 +0200)
committerRoland Haeder <roland@mxchange.org>
Thu, 22 Sep 2016 21:27:35 +0000 (23:27 +0200)
src/FDM/JSBSim/models/FGAerodynamics.cpp

index 4aadccf61dc978fe873687b8e30258a1c09a37fb..6422a45cc707b86186ec4b56b349667cbe41f224 100644 (file)
@@ -149,7 +149,7 @@ bool FGAerodynamics::Run(bool Holding)
 
   // Calculate lift coefficient squared
   // Make sure that aero/cl-squared is computed with the current qbar
-  if ( in.Qbar > 0) {
+  if ( in.Qbar > 1.0) {
     clsq = (vFw(eLift) + vFwAtCG(eLift))/ (in.Wingarea*in.Qbar);
     clsq *= clsq;
   }