integrated menuInformationsSites to

driveMenu items
This commit is contained in:
2023-05-11 08:39:06 +02:00
parent 8e5a47f65b
commit df6a4b5e92
8 changed files with 64 additions and 38 deletions
@@ -10,14 +10,34 @@
*/
#include "menuManualDrive.h"
void MenuManualControl::printMenu() {
if (this->firstPrint)
this->init();
void MenuManualControl::printPage() const {
String lineOne = "";
String lineTwo = "";
this->print("Now you can", "drive. :)");
uint8_t currentPage = this->getCurrentPage();
switch (currentPage) {
case 0:
lineOne = "-Ready to drive-";
break;
case 0:
lineOne = "Speed:";
lineTwo = "Warp 3";
break;
default:
lineOne = "Unkown page";
lineTwo = "Number: ";
lineTwo.concat(currentPage);
break;
}
this->print(lineOne, lineTwo);
}
void MenuManualControl::init() {
this->firstPrint = false;
this->driveManager->changeModus(Modi::ManualControl);
this->driveManager->changeModus(Modi::ManualControl);
this->setCountPages(4);
}