From ac53e46e225681b52951ad72322ef1ff38e092ea Mon Sep 17 00:00:00 2001 From: Alexander Klein Date: Thu, 27 Apr 2023 13:41:13 +0200 Subject: [PATCH] fix: rover moved on after finished navigation --- src/driveModi/Modi/Autopilot/autopilot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/driveModi/Modi/Autopilot/autopilot.cpp b/src/driveModi/Modi/Autopilot/autopilot.cpp index ba46067..e7a1ded 100644 --- a/src/driveModi/Modi/Autopilot/autopilot.cpp +++ b/src/driveModi/Modi/Autopilot/autopilot.cpp @@ -48,10 +48,10 @@ void Autopilot::runAutopilot() { this->setSelfDriving(ControlPadButton::isControlPadButtonPressed(this->input, ControlPadButton::PadButton::Action)); if (this->routeInfo.currentPoint == this->routeInfo.totalPoints) { + this->setSelfDriving(false); this->navigationEnded = true; this->navigationStarted = false; this->selfDrivingAvailable = false; - this->setSelfDriving(false); } if (selfDriving) {