From: david Date: Wed, 12 Feb 2003 18:34:51 +0000 (+0000) Subject: Square the /environment/turbulence-norm property before scaling it for X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1693a364e4089ee5eb5dd4efcf340e41d5d39455;p=flightgear.git Square the /environment/turbulence-norm property before scaling it for FGAtmosphere -- that way, there are finer distinctions in the lower end, where most people will fly. --- diff --git a/src/FDM/JSBSim/JSBSim.cxx b/src/FDM/JSBSim/JSBSim.cxx index 2633332df..aaa08ef87 100644 --- a/src/FDM/JSBSim/JSBSim.cxx +++ b/src/FDM/JSBSim/JSBSim.cxx @@ -212,7 +212,9 @@ void FGJSBsim::init() { 9.0/5.0*(temperature->getDoubleValue()+273.15) ); Atmosphere->SetExPressure(pressure->getDoubleValue()*70.726566); Atmosphere->SetExDensity(density->getDoubleValue()); - Atmosphere->SetTurbGain(turbulence->getDoubleValue()*100.0); + Atmosphere->SetTurbGain(turbulence->getDoubleValue() * + turbulence->getDoubleValue() * + 100.0); } else { Atmosphere->UseInternal(); } @@ -400,7 +402,9 @@ bool FGJSBsim::copy_to_JSBsim() { 9.0/5.0*(temperature->getDoubleValue()+273.15) ); Atmosphere->SetExPressure(pressure->getDoubleValue()*70.726566); Atmosphere->SetExDensity(density->getDoubleValue()); - Atmosphere->SetTurbGain(turbulence->getDoubleValue()*100.0); + Atmosphere->SetTurbGain(turbulence->getDoubleValue() * + turbulence->getDoubleValue() * + 100.0); Atmosphere->SetWindNED( wind_from_north->getDoubleValue(), wind_from_east->getDoubleValue(),