From e89194b42a6d52d1035c78027d711ebd67d6f963 Mon Sep 17 00:00:00 2001 From: david Date: Mon, 27 Feb 2006 02:24:14 +0000 Subject: [PATCH] Change from Dave Perry: 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Instrumentation/turn_indicator.cxx b/src/Instrumentation/turn_indicator.cxx index f04c33369..124186c1f 100644 --- a/src/Instrumentation/turn_indicator.cxx +++ b/src/Instrumentation/turn_indicator.cxx @@ -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(); -- 2.39.5