diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2014-08-22 21:41:24 +0200 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2014-08-22 21:41:24 +0200 |
commit | 4d75222b67b8ae93f28c1bbec782ce7fd0ab9919 (patch) | |
tree | b59e9988a2283ef8650fc422d00a7096a01b18be | |
parent | d50135b611605891cb1fb8841490c41474c3ec31 (diff) | |
download | px4-firmware-4d75222b67b8ae93f28c1bbec782ce7fd0ab9919.tar.gz px4-firmware-4d75222b67b8ae93f28c1bbec782ce7fd0ab9919.tar.bz2 px4-firmware-4d75222b67b8ae93f28c1bbec782ce7fd0ab9919.zip |
switch to rc loss mode if rc loss commanded
-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 404bafb04..d105e4bdf 100644 --- a/src/modules/commander/state_machine_helper.cpp +++ b/src/modules/commander/state_machine_helper.cpp @@ -451,7 +451,7 @@ bool set_nav_state(struct vehicle_status_s *status, const bool data_link_loss_en case MAIN_STATE_ALTCTL: case MAIN_STATE_POSCTL: /* require RC for all manual modes */ - if (status->rc_signal_lost && armed) { + if ((status->rc_signal_lost || status->rc_signal_lost_cmd) && armed) { status->failsafe = true; if (status->condition_global_position_valid && status->condition_home_position_valid) { |