pointer as auto declaration

This commit is contained in:
2023-10-11 11:41:21 +02:00
parent 45264c6481
commit d9d3f63160
5 changed files with 34 additions and 33 deletions
+16 -16
View File
@@ -203,22 +203,22 @@ void makeMenu() {
// Create Menu
main_m = new Menu();
main_m->setLcd(lcdWrapper);
Menu* mode_m = new Menu();
Menu* set_m = new Menu();
Menu* pid_m = new Menu();
MenuIntInput* pidl_m = new MenuIntInput(3, new MenuPidSettings(moveController.getPID(0)));
MenuIntInput* pidr_m = new MenuIntInput(3, new MenuPidSettings(moveController.getPID(1)));
MenuIntInput* speed_m = new MenuIntInput(2, new MenuSpeed(driveManager->getDrivingSpeedsRef()));
MenuManualControl* man_m = new MenuManualControl(driveManager);
MenuCaptureRoute* cap_m = new MenuCaptureRoute(driveManager);
MenuAutopilot* auto_m = new MenuAutopilot(driveManager);
MenuTestMode* testM_m = new MenuTestMode(driveManager);
MenuCalibrateCompass* comp_m = new MenuCalibrateCompass(driveManager);
MenuSysteminformation* sys_m = new MenuSysteminformation(mainBattery);
MenuSensorData* sen_m = new MenuSensorData(sensorData);
auto mode_m = new Menu();
auto set_m = new Menu();
auto pid_m = new Menu();
auto pidl_m = new MenuIntInput(3, new MenuPidSettings(moveController.getPID(0)));
auto pidr_m = new MenuIntInput(3, new MenuPidSettings(moveController.getPID(1)));
auto speed_m = new MenuIntInput(2, new MenuSpeed(driveManager->getDrivingSpeedsRef()));
auto man_m = new MenuManualControl(driveManager);
auto cap_m = new MenuCaptureRoute(driveManager);
auto auto_m = new MenuAutopilot(driveManager);
auto testM_m = new MenuTestMode(driveManager);
auto comp_m = new MenuCalibrateCompass(driveManager);
auto sys_m = new MenuSysteminformation(mainBattery);
auto sen_m = new MenuSensorData(sensorData);
//TODO: Wie bekommt jeder die dumme Route?
MenuRoute* rout_m = new MenuRoute(new Route());
MenuCalibrateBattery* bat_m = new MenuCalibrateBattery(mainBattery);
auto rout_m = new MenuRoute(new Route());
auto bat_m = new MenuCalibrateBattery(mainBattery);
auto_m->setUpdateDelay(1000);
sys_m->setUpdateDelay(1500);
@@ -271,7 +271,7 @@ void makeMenu() {
controlPad->setMenuControl(main_m);
}
void restart(void) {
void restart() {
lcdWrapper->clear();
lcdWrapper->setCursor(0, 0);
lcdWrapper->print("Rebooting ...");