some fixes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user