From 08dab18a8b525334a74fa1a6135768f647f77dfb Mon Sep 17 00:00:00 2001 From: Silvan Fuhrer Date: Tue, 27 Apr 2021 19:05:41 +0200 Subject: [PATCH] vtol_type: in FW, set min PWM to PWM_DEFAULT_MIN instead of PWM_MOTOR_OFF Signed-off-by: Silvan Fuhrer --- src/modules/vtol_att_control/vtol_type.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/vtol_att_control/vtol_type.cpp b/src/modules/vtol_att_control/vtol_type.cpp index cebc96b382..af1c44c122 100644 --- a/src/modules/vtol_att_control/vtol_type.cpp +++ b/src/modules/vtol_att_control/vtol_type.cpp @@ -332,7 +332,7 @@ bool VtolType::set_idle_fw() for (int i = 0; i < num_outputs_max; i++) { if (is_channel_set(i, generate_bitmap_from_channel_numbers(_params->vtol_motor_id))) { - pwm_values.values[i] = PWM_MOTOR_OFF; + pwm_values.values[i] = PWM_DEFAULT_MIN; } else { pwm_values.values[i] = _min_mc_pwm_values.values[i];