]> git.mxchange.org Git - flightgear.git/commitdiff
Decrease the error (slightly) from a power glide.
authordavid <david>
Fri, 4 Oct 2002 01:04:20 +0000 (01:04 +0000)
committerdavid <david>
Fri, 4 Oct 2002 01:04:20 +0000 (01:04 +0000)
src/Instrumentation/attitude_indicator.cxx

index b33f25da89ce813049f6624c26262ce799ec6edb..5378e15ed8fd29630ef362355c5fe5ea4f3a71c0 100644 (file)
@@ -74,7 +74,7 @@ AttitudeIndicator::update (double dt)
 
                                 // Next, calculate the indicated roll
                                 // and pitch, introducing errors.
-    double factor = 1.0 - ((1.0 - spin) * (1.0 - spin));
+    double factor = 1.0 - ((1.0 - spin) * (1.0 - spin) * (1.0 - spin));
     double roll = _roll_in_node->getDoubleValue();
     double pitch = _pitch_in_node->getDoubleValue();
     roll = 35 + (factor * (roll - 35));