1
0
Fork 0

GPS / route-manager: only drive autopilot true-heading in LEG mode, for compatibility with the old behaviour.

This commit is contained in:
jmt 2009-12-22 12:05:52 +00:00 committed by Tim Moore
parent 053d405a5c
commit 8cfdfb21a5

View file

@ -1003,8 +1003,12 @@ void GPS::driveAutopilot()
return;
}
// FIXME: we want to set desired track, not heading, here
_apTrueHeading->setDoubleValue(getWP1Bearing());
// compatability feature - allow the route-manager / GPS to drive the
// generic autopilot heading hold *in leg mode only*
if (_mode == "leg") {
// FIXME: we want to set desired track, not heading, here
_apTrueHeading->setDoubleValue(getWP1Bearing());
}
}
void GPS::wp1Changed()