VTOL: Do not allow manual override

This commit is contained in:
Lorenz Meier 2014-12-23 21:50:16 +01:00
parent 46dd95ab34
commit d8eefa3053
1 changed files with 1 additions and 1 deletions

View File

@ -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;