1
0
Fork 0

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.
This commit is contained in:
david 2006-02-27 02:24:14 +00:00
parent 86c3a3b5c4
commit e89194b42a

View 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();