refactor, added akku menu, finished autopilot menu

This commit is contained in:
2022-02-05 13:46:52 +01:00
parent b4a5814ef1
commit aa9bf99349
19 changed files with 270 additions and 55 deletions
+12
View File
@@ -24,6 +24,14 @@ class Autopilot : public ManualControl {
void loop();
void runAutopilot();
RouteInfo getRouteInfo() const { return this->routeInfo; }
CourseCorrection getCourseCorrection() const { return this->courseCorrection; }
bool getNavigationStarted() const { return this->navigationStarted; }
bool getNavigationEnded() const { return this->navigationEnded; }
bool getSelfDriving() const { return this->selfDriving; }
bool getSelfDrivingAvailable() const { return this->selfDrivingAvailable; }
bool shouldUpdate();
private:
void setSelfDriving(bool val);
@@ -32,9 +40,13 @@ class Autopilot : public ManualControl {
Navigation* navigation;
CourseCorrection courseCorrection;
RouteInfo routeInfo;
bool navigationStarted = false;
bool navigationEnded = false;
bool selfDriving = false;
bool selfDrivingAvailable = false;
bool updateDisplay = false;
uint16_t last_millis = 0;
uint8_t delay = 40;