Avoid strong oscillations at turbulence extremes.
This commit is contained in:
parent
484bab7bc8
commit
c5be967fba
1 changed files with 1 additions and 2 deletions
|
@ -267,8 +267,7 @@ void FGAtmosphere::Turbulence(void)
|
|||
vDirectiondAccelDt(eY) = 1 - 2.0*(double(rand())/double(RAND_MAX));
|
||||
vDirectiondAccelDt(eZ) = 1 - 2.0*(double(rand())/double(RAND_MAX));
|
||||
|
||||
|
||||
MagnitudedAccelDt = 1 - 2.0*(double(rand())/double(RAND_MAX)) - Magnitude;
|
||||
MagnitudedAccelDt = 1 - 2.0*(double(rand())/double(RAND_MAX));
|
||||
MagnitudeAccel += MagnitudedAccelDt*rate*State->Getdt();
|
||||
Magnitude += MagnitudeAccel*rate*State->Getdt();
|
||||
|
||||
|
|
Loading…
Reference in a new issue