forked from Archive/PX4-Autopilot
VTOL: Do not allow manual override
This commit is contained in:
parent
46dd95ab34
commit
d8eefa3053
|
@ -2225,7 +2225,7 @@ set_control_mode()
|
|||
{
|
||||
/* set vehicle_control_mode according to set_navigation_state */
|
||||
control_mode.flag_armed = armed.armed;
|
||||
control_mode.flag_external_manual_override_ok = !status.is_rotary_wing;
|
||||
control_mode.flag_external_manual_override_ok = (!status.is_rotary_wing && !status.is_vtol);
|
||||
control_mode.flag_system_hil_enabled = status.hil_state == HIL_STATE_ON;
|
||||
control_mode.flag_control_offboard_enabled = false;
|
||||
|
||||
|
|
Loading…
Reference in New Issue