mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 22:53:34 +08:00
VTOL: Do not allow manual override
This commit is contained in:
@@ -2225,7 +2225,7 @@ set_control_mode()
|
|||||||
{
|
{
|
||||||
/* set vehicle_control_mode according to set_navigation_state */
|
/* set vehicle_control_mode according to set_navigation_state */
|
||||||
control_mode.flag_armed = armed.armed;
|
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_system_hil_enabled = status.hil_state == HIL_STATE_ON;
|
||||||
control_mode.flag_control_offboard_enabled = false;
|
control_mode.flag_control_offboard_enabled = false;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user