Browse Source

commander: Handle takeoff state

sbg
Lorenz Meier 9 years ago
parent
commit
34f4c57456
  1. 1
      src/modules/commander/commander.cpp

1
src/modules/commander/commander.cpp

@ -2929,6 +2929,7 @@ set_control_mode() @@ -2929,6 +2929,7 @@ set_control_mode()
case vehicle_status_s::NAVIGATION_STATE_AUTO_LANDENGFAIL:
case vehicle_status_s::NAVIGATION_STATE_AUTO_MISSION:
case vehicle_status_s::NAVIGATION_STATE_AUTO_LOITER:
case vehicle_status_s::NAVIGATION_STATE_AUTO_TAKEOFF:
control_mode.flag_control_manual_enabled = false;
control_mode.flag_control_auto_enabled = true;
control_mode.flag_control_rates_enabled = true;

Loading…
Cancel
Save