diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2014-08-16 13:09:10 +0200 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2014-08-16 13:09:10 +0200 |
commit | 72beef90c9a9bb901355483e275a47f166f654a8 (patch) | |
tree | 9f1c08f7b43b613d50a0907a75a3891f51aa80bd /src/modules/commander/state_machine_helper.cpp | |
parent | a972a2857197706ed414b674dcaf291d48ac0f04 (diff) | |
download | px4-firmware-72beef90c9a9bb901355483e275a47f166f654a8.tar.gz px4-firmware-72beef90c9a9bb901355483e275a47f166f654a8.tar.bz2 px4-firmware-72beef90c9a9bb901355483e275a47f166f654a8.zip |
set correct nav state for data link loss
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 157e35ef8..f82eec695 100644 --- a/src/modules/commander/state_machine_helper.cpp +++ b/src/modules/commander/state_machine_helper.cpp @@ -510,7 +510,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_RTGS; } else if (status->condition_local_position_valid) { status->nav_state = NAVIGATION_STATE_LAND; } else if (status->condition_local_altitude_valid) { |