some fixes
This commit is contained in:
@@ -10,8 +10,8 @@
|
||||
*/
|
||||
//Pin config
|
||||
//Left Motor
|
||||
#define M_DIR_11 27
|
||||
#define M_DIR_12 12
|
||||
#define M_DIR_11 12
|
||||
#define M_DIR_12 27
|
||||
#define M_PWM_1 13
|
||||
#define M_ENCODE_1A 33
|
||||
#define M_ENCODE_1B 32
|
||||
|
||||
@@ -44,6 +44,7 @@ void Menu::printMenu() {
|
||||
lineTwo.concat((*this->entrys.begin())->getName());
|
||||
|
||||
this->inSubmenu = false;
|
||||
this->print(lineOne, lineTwo);
|
||||
}
|
||||
|
||||
void Menu::update() {
|
||||
|
||||
@@ -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