aboutsummaryrefslogtreecommitdiff
path: root/src/modules/navigator/navigator_main.cpp
diff options
context:
space:
mode:
authorThomas Gubler <thomasgubler@gmail.com>2014-08-21 09:39:43 +0200
committerThomas Gubler <thomasgubler@gmail.com>2014-08-21 09:39:43 +0200
commit3e1de713af500bfa97e5e27f588d76b2ddaafc01 (patch)
tree7b2a32758e9ef44774f75969b36182c7e73bb293 /src/modules/navigator/navigator_main.cpp
parent24b1ff23f2ee53b4f1ef0e46e412b1786c5540b2 (diff)
downloadpx4-firmware-3e1de713af500bfa97e5e27f588d76b2ddaafc01.tar.gz
px4-firmware-3e1de713af500bfa97e5e27f588d76b2ddaafc01.tar.bz2
px4-firmware-3e1de713af500bfa97e5e27f588d76b2ddaafc01.zip
navigator: correct mode for land and termination
Diffstat (limited to 'src/modules/navigator/navigator_main.cpp')
-rw-r--r--src/modules/navigator/navigator_main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/navigator/navigator_main.cpp b/src/modules/navigator/navigator_main.cpp
index 331a9a728..042c46afd 100644
--- a/src/modules/navigator/navigator_main.cpp
+++ b/src/modules/navigator/navigator_main.cpp
@@ -353,6 +353,8 @@ Navigator::task_main()
case NAVIGATION_STATE_ACRO:
case NAVIGATION_STATE_ALTCTL:
case NAVIGATION_STATE_POSCTL:
+ case NAVIGATION_STATE_LAND:
+ case NAVIGATION_STATE_TERMINATION:
_navigation_mode = nullptr;
_can_loiter_at_sp = false;
break;
@@ -368,8 +370,6 @@ Navigator::task_main()
case NAVIGATION_STATE_AUTO_RTGS:
_navigation_mode = &_rtl; /* TODO: change this to something else */
break;
- case NAVIGATION_STATE_LAND:
- case NAVIGATION_STATE_TERMINATION:
case NAVIGATION_STATE_OFFBOARD:
_navigation_mode = &_offboard;
break;