1
0
Fork 0

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.

This commit is contained in:
Bertrand Coconnier 2016-05-27 13:50:35 +02:00
parent b9c2ddb94f
commit f25304ace5

View 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;
}