cleaning
refactore all components now have a base class compnent for loop functions
This commit is contained in:
@@ -117,7 +117,7 @@ class Autopilot : public ManualControl {
|
||||
void drive();
|
||||
void beginRotate();
|
||||
void rotate();
|
||||
void runAutopilot();
|
||||
void run() override;
|
||||
void checkButtonInput();
|
||||
void askNavigationForOrder();
|
||||
void selfDriving();
|
||||
@@ -134,12 +134,8 @@ class Autopilot : public ManualControl {
|
||||
bool updateDisplay = false;
|
||||
bool loopMode = false;
|
||||
|
||||
uint8_t loopDelayMillis = 40;
|
||||
uint8_t maxCourseDeviationBeforeAct = 5;
|
||||
uint16_t displayUpdateDelayMillis = 1000;
|
||||
uint16_t autopilotChangeDelayMillis = 500;
|
||||
uint32_t displayUpdateLastMillis = 0;
|
||||
uint32_t loopLastMillis = 0;
|
||||
uint32_t lastAutopilotChangeMillis = 0;
|
||||
|
||||
int16_t rotationAimAzimuth;
|
||||
|
||||
Reference in New Issue
Block a user