]> git.mxchange.org Git - flightgear.git/commitdiff
Square the /environment/turbulence-norm property before scaling it for
authordavid <david>
Wed, 12 Feb 2003 18:34:51 +0000 (18:34 +0000)
committerdavid <david>
Wed, 12 Feb 2003 18:34:51 +0000 (18:34 +0000)
FGAtmosphere -- that way, there are finer distinctions in the lower
end, where most people will fly.

src/FDM/JSBSim/JSBSim.cxx

index 2633332df816d78197847f4d66b94b3eec5043d9..aaa08ef87bfb2e461a8e7d4bd45afa0c8272b432 100644 (file)
@@ -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(),