refactor, added akku menu, finished autopilot menu
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user