Standard VTOL: set idle PWM during backtransition

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
Silvan Fuhrer
2020-12-22 13:46:22 +01:00
committed by Lorenz Meier
parent 7e01938341
commit 9849ff4a9c
@@ -309,6 +309,11 @@ void Standard::update_transition_state()
if (_motor_state != motor_state::ENABLED) {
_motor_state = set_motor_state(_motor_state, motor_state::ENABLED);
}
// set idle speed for MC actuators
if (!_flag_idle_mc) {
_flag_idle_mc = set_idle_mc();
}
}
mc_weight = math::constrain(mc_weight, 0.0f, 1.0f);