diff options
author | Julian Oes <julian@oes.ch> | 2014-06-18 19:01:41 +0200 |
---|---|---|
committer | Julian Oes <julian@oes.ch> | 2014-06-18 19:01:41 +0200 |
commit | e24925c743330bc3c6c0a24ba913a9c5fab5e07d (patch) | |
tree | c8ad98fc0caba4a061651c50eba120575cb8bba5 /src/modules/navigator | |
parent | 55e5f747de013fb386727b41cc67bd019c129c31 (diff) | |
download | px4-firmware-e24925c743330bc3c6c0a24ba913a9c5fab5e07d.tar.gz px4-firmware-e24925c743330bc3c6c0a24ba913a9c5fab5e07d.tar.bz2 px4-firmware-e24925c743330bc3c6c0a24ba913a9c5fab5e07d.zip |
commander: added some failsafe logic
Diffstat (limited to 'src/modules/navigator')
-rw-r--r-- | src/modules/navigator/navigator_main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules/navigator/navigator_main.cpp b/src/modules/navigator/navigator_main.cpp index 70da5393f..50bcfd58d 100644 --- a/src/modules/navigator/navigator_main.cpp +++ b/src/modules/navigator/navigator_main.cpp @@ -351,8 +351,12 @@ Navigator::task_main() _navigation_mode = &_loiter; break; case NAVIGATION_STATE_AUTO_RTL: + case NAVIGATION_STATE_AUTO_FS_RC_LOSS: _navigation_mode = &_rtl; break; + case NAVIGATION_STATE_AUTO_FS_DL_LOSS: + _navigation_mode = &_rtl; /* TODO: change this to something else */ + break; case NAVIGATION_STATE_LAND: case NAVIGATION_STATE_TERMINATION: default: |