]> git.mxchange.org Git - flightgear.git/commitdiff
Improve spindown when the gyro fails.
authordavid <david>
Sat, 25 Jan 2003 21:48:35 +0000 (21:48 +0000)
committerdavid <david>
Sat, 25 Jan 2003 21:48:35 +0000 (21:48 +0000)
src/Instrumentation/turn_indicator.cxx

index 5e052397452e7b59f98922f185b2f5869b01c0d6..d2bd957c32ecdb612efea112e96437bccabb7f49 100644 (file)
@@ -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