Skip to content

Commit

Permalink
vtol_type: enable pusher assist also in Descend mode
Browse files Browse the repository at this point in the history
Signed-off-by: Silvan Fuhrer <[email protected]>
  • Loading branch information
sfuhrer committed Mar 6, 2024
1 parent 6f9a378 commit 471c3e0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/modules/vtol_att_control/vtol_type.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -494,10 +494,9 @@ float VtolType::pusher_assist()
break;
}

// if the thrust scale param is zero or the drone is not in some position or altitude control mode,
// if the thrust scale param is zero or the drone is not in a climb rate controlled mode,
// then the pusher-for-pitch strategy is disabled and we can return
if (_param_vt_fwd_thrust_sc.get() < FLT_EPSILON || !(_v_control_mode->flag_control_position_enabled
|| _v_control_mode->flag_control_altitude_enabled)) {
if (_param_vt_fwd_thrust_sc.get() < FLT_EPSILON || !(_v_control_mode->flag_control_climb_rate_enabled)) {
return 0.0f;
}

Expand Down

0 comments on commit 471c3e0

Please sign in to comment.