From 2260c44b216c92acde4e155a45c638ca6210c804 Mon Sep 17 00:00:00 2001 From: Bertrand Coconnier Date: Fri, 27 May 2016 13:50:35 +0200 Subject: [PATCH] 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. --- src/FDM/JSBSim/models/FGAerodynamics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5