Re-apply the reciprocal patch from cvs rev 1.3 and correct an order of magnitude regression in HeadingIndicatorFG
This commit is contained in:
parent
58f303e464
commit
52c1061e24
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue