Browse Source

Commander: switch back to Hold mode after autonomous landing

main
Matthias Grob 3 years ago committed by Julian Oes
parent
commit
83c15fca9f
  1. 6
      src/modules/commander/Commander.cpp

6
src/modules/commander/Commander.cpp

@ -2915,6 +2915,12 @@ Commander::run() @@ -2915,6 +2915,12 @@ Commander::run()
_param_flight_uuid.commit_no_notification();
_last_disarmed_timestamp = hrt_absolute_time();
// Switch back to Hold mode after autonomous landing
if (_vehicle_control_mode.flag_control_auto_enabled) {
main_state_transition(_vehicle_status, commander_state_s::MAIN_STATE_AUTO_LOITER,
_vehicle_status_flags, _commander_state);
}
}
if (!_arm_state_machine.isArmed()) {

Loading…
Cancel
Save