no time for comment

This commit is contained in:
2023-08-09 22:41:48 +02:00
parent 98f3cb93f0
commit 2e0b7f7f8d
8 changed files with 91 additions and 16 deletions
@@ -197,10 +197,30 @@ void MenuAutopilot::printPage() const {
}
break;
default:
this->printDefault();
return;
}
case 12:
lineOne = "Test rotate";
lineTwo = "180 degree";
break;
case 13:
lineOne = "Test rotate";
lineTwo = "45 degree";
break;
case 14:
lineOne = "Test rotate";
lineTwo = "15 degree";
break;
case 15:
lineOne = "Test rotate";
lineTwo = "5 degree";
break;
default:
this->printDefault();
return;
}
this->print(lineOne, lineTwo);
}
@@ -235,6 +255,22 @@ void MenuAutopilot::runCommand() const {
else
this->driveManager->getNavigation()->setMinAccuracy(Point::Accuracy::twoDigOfCM);
break;
case 12:
this->autopilot->rotate(180);
break;
case 13:
this->autopilot->rotate(45);
break;
case 14:
this->autopilot->rotate(15);
break;
case 15:
this->autopilot->rotate(5);
break;
default:
break;
@@ -250,7 +286,7 @@ void MenuAutopilot::update() {
}
void MenuAutopilot::init() {
this->setCountPages(12);
this->setCountPages(16);
this->driveManager->changeModus(Modi::Autopilot);
this->autopilot = (Autopilot*) this->driveManager->getDriveModiPtr();
this->routeInfo = this->autopilot->getRouteInfo();