saved status of freezing target point in the
autopilot menu
This commit is contained in:
@@ -168,10 +168,13 @@ void MenuAutopilot::runCommand() const {
|
||||
break;
|
||||
|
||||
case 7:
|
||||
if (this->targetFreezed)
|
||||
if (this->targetFreezed) {
|
||||
this->targetFreezed = false;
|
||||
this->driveManager->getNavigation()->freezeTargetPoint(false);
|
||||
else
|
||||
} else {
|
||||
this->targetFreezed = true;
|
||||
this->driveManager->getNavigation()->freezeTargetPoint();
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
|
||||
@@ -47,7 +47,7 @@ class MenuAutopilot : public MenuDriveMode {
|
||||
private:
|
||||
void init() override;
|
||||
|
||||
bool targetFreezed = false;
|
||||
bool mutable targetFreezed = false;
|
||||
|
||||
Autopilot* autopilot;
|
||||
RouteInfo routeInfo;
|
||||
|
||||
Reference in New Issue
Block a user