mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-30 07:00:36 +08:00
Commander: switch back to Hold mode after autonomous landing
This commit is contained in:
committed by
Julian Oes
parent
33df8b24f2
commit
83c15fca9f
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user