style(PID): remove unnecessary semicolons and ensure proper formatting (#27049)

This commit is contained in:
丁勇 2026-04-11 05:16:32 +08:00 committed by GitHub
parent ed0b9d7d3a
commit ca96106f7d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -46,8 +46,8 @@ public:
void setSetpoint(const float setpoint) { _setpoint = setpoint; }
float update(const float feedback, const float dt, const bool update_integral = true);
float getIntegral() { return _integral; }
void resetIntegral() { _integral = 0.f; };
void resetDerivative() { _last_feedback = NAN; };
void resetIntegral() { _integral = 0.f; }
void resetDerivative() { _last_feedback = NAN; }
private:
void updateIntegral(float error, const float dt);
float updateDerivative(float feedback, const float dt);