mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-02 05:58:30 -04:00
Plane: don't apply fw pitch limit in VTOL control for tailsitters
tailsitters may have narrow fixed wing limits but need high limits for landing in high wind found this on a HWing which was essentially impossible to auto land
This commit is contained in:
parent
8ea702ed81
commit
ca753d4814
@ -2850,6 +2850,7 @@ void QuadPlane::vtol_position_controller(void)
|
|||||||
plane.nav_roll_cd = pos_control->get_roll_cd();
|
plane.nav_roll_cd = pos_control->get_roll_cd();
|
||||||
plane.nav_pitch_cd = pos_control->get_pitch_cd();
|
plane.nav_pitch_cd = pos_control->get_pitch_cd();
|
||||||
|
|
||||||
|
if (!is_tailsitter()) {
|
||||||
/*
|
/*
|
||||||
limit the pitch down with an expanding envelope. This
|
limit the pitch down with an expanding envelope. This
|
||||||
prevents the velocity controller demanding nose down during
|
prevents the velocity controller demanding nose down during
|
||||||
@ -2870,6 +2871,7 @@ void QuadPlane::vtol_position_controller(void)
|
|||||||
// stop integrator buildup
|
// stop integrator buildup
|
||||||
pos_control->set_externally_limited_xy();
|
pos_control->set_externally_limited_xy();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// call attitude controller
|
// call attitude controller
|
||||||
attitude_control->input_euler_angle_roll_pitch_euler_rate_yaw(plane.nav_roll_cd,
|
attitude_control->input_euler_angle_roll_pitch_euler_rate_yaw(plane.nav_roll_cd,
|
||||||
|
Loading…
Reference in New Issue
Block a user