GPS / route-manager: only drive autopilot true-heading in LEG mode, for compatibility with the old behaviour.
This commit is contained in:
parent
053d405a5c
commit
8cfdfb21a5
1 changed files with 6 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue