clangtidy corrections part 1
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user