integrated menuInformationsSites to
driveMenu items
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user