mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-09 05:21:35 +08:00
also use VT_LND_PITCH_MIN in NAVIGATION_STATE_DESCEND
This commit is contained in:
@@ -379,8 +379,9 @@ float VtolType::pusher_assist()
|
||||
|
||||
float pitch_setpoint_min = math::radians(_param_vt_pitch_min.get());
|
||||
|
||||
if (_attc->get_pos_sp_triplet()->current.valid
|
||||
&& _attc->get_pos_sp_triplet()->current.type == position_setpoint_s::SETPOINT_TYPE_LAND) {
|
||||
if ((_attc->get_pos_sp_triplet()->current.valid
|
||||
&& _attc->get_pos_sp_triplet()->current.type == position_setpoint_s::SETPOINT_TYPE_LAND)
|
||||
|| _attc->get_vehicle_status()->nav_state == vehicle_status_s::NAVIGATION_STATE_DESCEND) {
|
||||
pitch_setpoint_min = math::radians(
|
||||
_param_vt_lnd_pitch_min.get()); // set min pitch during LAND (usually lower to generate less lift)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user