From: Bertrand Coconnier Date: Fri, 27 May 2016 11:50:35 +0000 (+0200) Subject: Tentative to fix JSBSim bug SF #115 : don't compute cl-squared when qbar is too low... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2260c44b216c92acde4e155a45c638ca6210c804;p=flightgear.git Tentative to fix JSBSim bug SF #115 : don't compute cl-squared when qbar is too low otherwise its value will go through the roof and so will the induced drag. --- diff --git a/src/FDM/JSBSim/models/FGAerodynamics.cpp b/src/FDM/JSBSim/models/FGAerodynamics.cpp index 4aadccf61..6422a45cc 100644 --- a/src/FDM/JSBSim/models/FGAerodynamics.cpp +++ b/src/FDM/JSBSim/models/FGAerodynamics.cpp @@ -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; }