optimized navigation

This commit is contained in:
2023-05-11 10:54:41 +02:00
parent 9b4017da9f
commit f2b63f1ce6
5 changed files with 23 additions and 10 deletions
+3 -1
View File
@@ -52,9 +52,11 @@ void DriveManager::nextModus() {
void DriveManager::changeModus(Modi modus) {
this->currentModus = modus;
//Set moveControl to a safe state
delete this->currentModusPtr;
//Reset Route to first point
this->navigation->startNavigation();
//Set moveControl to a safe state
this->moveControl->setSpeed(0);
this->moveControl->setRotationSpeed(0);
this->moveControl->setDrivingStatus(DrivingStatus::stop);