mc_pos_control: remove trailing zeroes

This commit is contained in:
Matthias Grob
2023-06-22 13:31:16 +02:00
parent 54a351639c
commit a6a913bf25
8 changed files with 74 additions and 74 deletions
@@ -152,8 +152,8 @@ void PositionControl::_velocityControl(const float dt)
_accelerationControl();
// Integrator anti-windup in vertical direction
if ((_thr_sp(2) >= -_lim_thr_min && vel_error(2) >= 0.0f) ||
(_thr_sp(2) <= -_lim_thr_max && vel_error(2) <= 0.0f)) {
if ((_thr_sp(2) >= -_lim_thr_min && vel_error(2) >= 0.f) ||
(_thr_sp(2) <= -_lim_thr_max && vel_error(2) <= 0.f)) {
vel_error(2) = 0.f;
}