1
0
Fork 0

Improve spindown when the gyro fails.

This commit is contained in:
david 2003-01-25 21:48:35 +00:00
parent 99aa857dcb
commit 25387150c4

View file

@ -62,8 +62,11 @@ TurnIndicator::update (double dt)
else if (rate > 2.5) else if (rate > 2.5)
rate = 2.5; rate = 2.5;
// Lag left, based on gyro spin
rate = -2.5 + (factor * (rate + 2.5));
// Add a lag, based on gyro spin // Add a lag, based on gyro spin
rate = fgGetLowPass(_last_rate, rate, dt/(factor*3)); rate = fgGetLowPass(_last_rate, rate, dt/factor);
_last_rate = rate; _last_rate = rate;
// Publish the indicated rate // Publish the indicated rate