fix: rover moved on after finished navigation
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user