some fixes

This commit is contained in:
2023-01-08 19:57:42 +01:00
parent 1147cb4eb6
commit 9762aabb00
5 changed files with 17 additions and 3 deletions
@@ -19,7 +19,9 @@ void MenuCaptureRoute::printMenu() {
String lineOne = "Points: ";
String lineTwo = "You can drive.";
lineTwo.concat(this->routeInfo.totalPoints);
lineOne.concat(this->routeInfo.totalPoints);
this->print(lineOne, lineTwo);
}
void MenuCaptureRoute::update() {
@@ -11,5 +11,13 @@
#include "menuManualDrive.h"
void MenuManualControl::printMenu() {
if (this->firstPrint)
this->init();
this->print("Now you can", "drive. :)");
}
void MenuManualControl::init() {
this->firstPrint = false;
this->driveManager->changeModus(Modi::ManualControl);
}
@@ -36,6 +36,9 @@ class MenuManualControl : public MenuDriveMode {
* Changes the DriveModi to Autopilot if it is the first time called.
*/
void printMenu();
private:
void init();
};
#endif // MENU_MANUAL_DRIVE_H