only allow positive spoiler and flap controls

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
Silvan Fuhrer
2022-05-03 15:11:21 +02:00
parent 64ff31aa08
commit 089673ff35
3 changed files with 6 additions and 6 deletions
@@ -732,7 +732,7 @@ void FixedwingAttitudeControl::controlFlaps(const float dt)
}
// move the actual control value continuous with time, full flap travel in 1sec
_flaps_setpoint_with_slewrate.update(flap_control, dt);
_flaps_setpoint_with_slewrate.update(math::constrain(flap_control, 0.f, 1.f), dt);
}
void FixedwingAttitudeControl::controlSpoilers(const float dt)
@@ -769,7 +769,7 @@ void FixedwingAttitudeControl::controlSpoilers(const float dt)
}
}
_spoiler_setpoint_with_slewrate.update(spoiler_control, dt);
_spoiler_setpoint_with_slewrate.update(math::constrain(spoiler_control, 0.f, 1.f), dt);
}
void FixedwingAttitudeControl::updateActuatorControlsStatus(float dt)