fix bug in route add akku menu begin with akkuread

This commit is contained in:
2022-02-05 22:41:25 +01:00
parent aa9bf99349
commit 1ef44864e2
12 changed files with 141 additions and 42 deletions
+3 -3
View File
@@ -50,13 +50,13 @@ void MenuAkku::printMenu() {
else sprintf(buf, "UNDEF");
if (this->lcd) {
} else {
lcd->clear();
lcd->setCursor(0, 0);
lcd->printf("Controller: %s", buf);
lcd->setCursor(0, 1);
lcd->printf("Main: %u%%", mainBattery);
} else {
std::cout << "Controller: " << buf << "Main: " << mainBattery << "%" << std::endl;
}
}
@@ -66,4 +66,4 @@ void MenuAkku::update() {
}
this->printMenu();
this->last_millis = millis();
}
}
+1 -1
View File
@@ -36,4 +36,4 @@ class MenuAkku : public MenuControl {
};
#endif // MENU_AKKU_H
#endif // MENU_AKKU_H
+1 -1
View File
@@ -129,4 +129,4 @@ void MenuGPS::printPage(uint8_t page) const {
}
break;
}
}
}
@@ -71,7 +71,6 @@ void MenuAutopilot::printMenu() {
} else
std::cout << buf1 << " " << buf2 << std::endl;
}
void MenuAutopilot::update() {
@@ -91,4 +90,4 @@ void MenuAutopilot::init() {
this->driveManager->changeModus(Modi::Autopilot);
this->autopilot = (Autopilot*) this->driveManager->getDriveModiPtr();
this->routeInfo = this->autopilot->getRouteInfo();
}
}
@@ -27,7 +27,7 @@ class MenuAutopilot : public MenuDriveMode {
RouteInfo routeInfo;
uint32_t last_millis = 0;
uint16_t minDelay = 500;
uint16_t minDelay = 1500;
};
#endif // MENU_AUTOPILOT_DRIVE_H
#endif // MENU_AUTOPILOT_DRIVE_H