From: david Date: Sat, 25 Jan 2003 21:48:35 +0000 (+0000) Subject: Improve spindown when the gyro fails. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=25387150c4df8b447366cd67b93443526827a3b1;p=flightgear.git Improve spindown when the gyro fails. --- diff --git a/src/Instrumentation/turn_indicator.cxx b/src/Instrumentation/turn_indicator.cxx index 5e0523974..d2bd957c3 100644 --- a/src/Instrumentation/turn_indicator.cxx +++ b/src/Instrumentation/turn_indicator.cxx @@ -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