1
0
Fork 0

Re-apply the reciprocal patch from cvs rev 1.3 and correct an order of magnitude regression in HeadingIndicatorFG

This commit is contained in:
Csaba Halasz 2009-10-25 16:23:31 +01:00 committed by Tim Moore
parent 58f303e464
commit 52c1061e24

View file

@ -117,7 +117,7 @@ HeadingIndicatorFG::update (double dt)
// Next, calculate the indicated heading,
// introducing errors.
double factor = 0.1 / (spin * spin * spin * spin * spin * spin);
double factor = 100 * (spin * spin * spin * spin * spin * spin);
double heading = _heading_in_node->getDoubleValue();
// Now, we have to get the current
@ -128,7 +128,7 @@ HeadingIndicatorFG::update (double dt)
if ((heading - _last_heading_deg) < -180)
_last_heading_deg -= 360;
heading = fgGetLowPass(_last_heading_deg, heading, dt / factor);
heading = fgGetLowPass(_last_heading_deg, heading, dt * factor);
_last_heading_deg = heading;
heading += offset;