mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
style(PID): remove unnecessary semicolons and ensure proper formatting (#27049)
This commit is contained in:
parent
ed0b9d7d3a
commit
ca96106f7d
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user