clangtidy corrections part 1

This commit is contained in:
2023-10-11 17:35:40 +02:00
parent 77a52b82c3
commit 23d854a826
36 changed files with 2383 additions and 1165 deletions
+5 -13
View File
@@ -41,14 +41,6 @@ class Autopilot : public ManualControl {
TargetReached
};
/**
* @brief Construct a new Autopilot object
*
* @param moveControl for ManualControl
* @param navigation for route instructions
*/
Autopilot();
/**
* @brief Destroy the Autopilot object
*
@@ -104,13 +96,13 @@ class Autopilot : public ManualControl {
void restartLoop();
void afterActivate() override;
Navigation* navigation;
CourseCorrection courseCorrection;
RouteInfo routeInfo;
Navigation* navigation = nullptr;
CourseCorrection courseCorrection{0, 0};
RouteInfo routeInfo{0, 0};
State state = State::None;
State lastState = State::None;
Navigation::Status lastOrderStatus;
DirectionChangeSignal* directionChangeSignal;
DirectionChangeSignal* directionChangeSignal = nullptr;
bool updateDisplay = false;
bool loopMode = false;
@@ -119,7 +111,7 @@ class Autopilot : public ManualControl {
uint16_t autopilotChangeDelayMillis = 500;
uint32_t lastAutopilotChangeMillis = 0;
int16_t rotationAimAzimuth;
int16_t rotationAimAzimuth = 0;
double minRemainingDistance = 0.25;
};