]> git.mxchange.org Git - flightgear.git/commitdiff
Change from Dave Perry:
authordavid <david>
Mon, 27 Feb 2006 02:24:14 +0000 (02:24 +0000)
committerdavid <david>
Mon, 27 Feb 2006 02:24:14 +0000 (02:24 +0000)
I am attaching a trivial patch that changes the normalization from 24 to
12 in turn_indicator.cxx.  With this change, the pa24 tc has a turn
indicator spin value in the property tree of 0.9996 and the same value
for the pa28-161 is 1.0, so there is no harm to a 24 volt electrical
system in this change.  Should the battery or alternator put out a lower
voltage than 12 volts, the spin value goes down and the tc shows a
negative turn that increases as the voltage gets less.  This file shows
you as the author.  If you are comfortable with this change, commit it
to cvs and the tc will be correct even for 12 volt systems.

src/Instrumentation/turn_indicator.cxx

index f04c33369d080600975f2901f092710f3313d168..124186c1fec5537385a8d1559ead506238749f20 100644 (file)
@@ -94,7 +94,7 @@ void
 TurnIndicator::update (double dt)
 {
                                 // Get the spin from the gyro
-    double power = _electric_current_node->getDoubleValue() / 24.0;
+    double power = _electric_current_node->getDoubleValue() / 12.0;
     _gyro.set_power_norm(power);
     _gyro.update(dt);
     double spin = _gyro.get_spin_norm();