mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-23 05:07:35 +08:00
clang-tidy: fix issues (#26498)
This commit is contained in:
@@ -100,7 +100,7 @@ public:
|
||||
// Direct Form II implementation
|
||||
T delay_element_0{sample - _delay_element_1 *_a1 - _delay_element_2 * _a2};
|
||||
|
||||
const T output{delay_element_0 *_b0 + _delay_element_1 *_b1 + _delay_element_2 * _b2};
|
||||
T output{delay_element_0 *_b0 + _delay_element_1 *_b1 + _delay_element_2 * _b2};
|
||||
|
||||
_delay_element_2 = _delay_element_1;
|
||||
_delay_element_1 = delay_element_0;
|
||||
|
||||
@@ -75,7 +75,7 @@ Vector3f RateControl::update(const Vector3f &rate, const Vector3f &rate_sp, cons
|
||||
Vector3f rate_error = rate_sp - rate;
|
||||
|
||||
// PID control with feed forward
|
||||
const Vector3f torque = _gain_p.emult(rate_error) + _rate_int - _gain_d.emult(angular_accel) + _gain_ff.emult(rate_sp);
|
||||
Vector3f torque = _gain_p.emult(rate_error) + _rate_int - _gain_d.emult(angular_accel) + _gain_ff.emult(rate_sp);
|
||||
|
||||
// update integral only if we are not landed
|
||||
if (!landed) {
|
||||
|
||||
Reference in New Issue
Block a user