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
+9 -4
View File
@@ -123,7 +123,7 @@ class MoveControl : public Component {
* @param i
* @param d
*/
void setPidTunings(uint8_t side, double p, double i, double d);
void setPidTunings(uint8_t side, double pPart, double iPart, double dPart);
/**
* @brief Returns the PID object of the choosen side.
@@ -152,7 +152,7 @@ class MoveControl : public Component {
private:
void run() override;
void setSpeedometerDirection(Speedometer *speedometer, double value);
static void setSpeedometerDirection(Speedometer *speedometer, double value);
void calcTargetWheelSpeed();
void regulateMotors();
void updateCurrentWheelSpeed();
@@ -171,12 +171,17 @@ class MoveControl : public Component {
double wheelspeed_right_target = 0;
double wheelspeed_left = 0;
double wheelspeed_right = 0;
double left_pid_out;
double right_pid_out;
double left_pid_out = 0;
double right_pid_out = 0;
uint8_t overTimeCounter = 0;
uint8_t overTimeMax = 100;
int8_t rawPowerLeft = 0;
int8_t rawPowerRight = 0;
static constexpr int8_t maxPercentage = 100;
static constexpr float minSpeed = 0.2;
static constexpr uint8_t loopDelay = 20;
};
#endif // MOVE_CONTROL_H