diff options
author | Anton Babushkin <anton.babushkin@me.com> | 2014-07-06 21:37:26 +0200 |
---|---|---|
committer | Anton Babushkin <anton.babushkin@me.com> | 2014-07-06 21:37:26 +0200 |
commit | 06f08ad04d4cb21047944f350e4a75e88914e1e1 (patch) | |
tree | 709116d144045efd8b4fdb08f42d65a08260648f /src/modules/commander/state_machine_helper.cpp | |
parent | 829a317d23093894c3d8974cce887ab3c19eba08 (diff) | |
download | px4-firmware-06f08ad04d4cb21047944f350e4a75e88914e1e1.tar.gz px4-firmware-06f08ad04d4cb21047944f350e4a75e88914e1e1.tar.bz2 px4-firmware-06f08ad04d4cb21047944f350e4a75e88914e1e1.zip |
commander: require home position for MISSION, fallback to LOITER
Diffstat (limited to 'src/modules/commander/state_machine_helper.cpp')
-rw-r--r-- | src/modules/commander/state_machine_helper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/commander/state_machine_helper.cpp b/src/modules/commander/state_machine_helper.cpp index 423ce2f23..7fb2e08db 100644 --- a/src/modules/commander/state_machine_helper.cpp +++ b/src/modules/commander/state_machine_helper.cpp @@ -271,7 +271,6 @@ main_state_transition(struct vehicle_status_s *status, main_state_t new_main_sta } break; - case MAIN_STATE_AUTO_MISSION: case MAIN_STATE_AUTO_LOITER: /* need global position estimate */ if (status->condition_global_position_valid) { @@ -279,6 +278,7 @@ main_state_transition(struct vehicle_status_s *status, main_state_t new_main_sta } break; + case MAIN_STATE_AUTO_MISSION: case MAIN_STATE_AUTO_RTL: /* need global position and home position */ if (status->condition_global_position_valid && status->condition_home_position_valid) { |