aboutsummaryrefslogtreecommitdiff
path: root/src/modules/commander/state_machine_helper.cpp
diff options
context:
space:
mode:
authorThomas Gubler <thomasgubler@gmail.com>2014-08-26 22:22:59 +0200
committerThomas Gubler <thomasgubler@gmail.com>2014-08-26 22:22:59 +0200
commit3d528a2c979e7d0df1171afc1f038759c7b01383 (patch)
tree5119ba64f72c21c946c0fa8d94d5ed5a4696739c /src/modules/commander/state_machine_helper.cpp
parent8a9da209d194b4f35000935379901ed6091091f9 (diff)
downloadpx4-firmware-3d528a2c979e7d0df1171afc1f038759c7b01383.tar.gz
px4-firmware-3d528a2c979e7d0df1171afc1f038759c7b01383.tar.bz2
px4-firmware-3d528a2c979e7d0df1171afc1f038759c7b01383.zip
introduce new nav state to allow normal rtl with RC switch
Diffstat (limited to 'src/modules/commander/state_machine_helper.cpp')
-rw-r--r--src/modules/commander/state_machine_helper.cpp2
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 098ff1a3d..e3b5d30e4 100644
--- a/src/modules/commander/state_machine_helper.cpp
+++ b/src/modules/commander/state_machine_helper.cpp
@@ -462,7 +462,7 @@ bool set_nav_state(struct vehicle_status_s *status, const bool data_link_loss_en
status->failsafe = true;
if (status->condition_global_position_valid && status->condition_home_position_valid) {
- status->nav_state = NAVIGATION_STATE_AUTO_RTL;
+ status->nav_state = NAVIGATION_STATE_AUTO_RCRECOVER;
} else if (status->condition_local_position_valid) {
status->nav_state = NAVIGATION_STATE_LAND;
} else if (status->condition_local_altitude_valid) {