Improve spindown when the gyro fails.
This commit is contained in:
parent
99aa857dcb
commit
25387150c4
1 changed files with 4 additions and 1 deletions
|
@ -62,8 +62,11 @@ TurnIndicator::update (double dt)
|
|||
else if (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
|
||||
rate = fgGetLowPass(_last_rate, rate, dt/(factor*3));
|
||||
rate = fgGetLowPass(_last_rate, rate, dt/factor);
|
||||
_last_rate = rate;
|
||||
|
||||
// Publish the indicated rate
|
||||
|
|
Loading…
Reference in a new issue