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.
This commit is contained in:
parent
9f5498acf4
commit
1693a364e4
1 changed files with 6 additions and 2 deletions
|
@ -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(),
|
||||
|
|
Loading…
Reference in a new issue