navigator: correct mode for land and termination

This commit is contained in:
Thomas Gubler 2014-08-21 09:39:43 +02:00
parent 24b1ff23f2
commit 3e1de713af
1 changed files with 2 additions and 2 deletions

View File

@ -353,6 +353,8 @@ Navigator::task_main()
case NAVIGATION_STATE_ACRO: case NAVIGATION_STATE_ACRO:
case NAVIGATION_STATE_ALTCTL: case NAVIGATION_STATE_ALTCTL:
case NAVIGATION_STATE_POSCTL: case NAVIGATION_STATE_POSCTL:
case NAVIGATION_STATE_LAND:
case NAVIGATION_STATE_TERMINATION:
_navigation_mode = nullptr; _navigation_mode = nullptr;
_can_loiter_at_sp = false; _can_loiter_at_sp = false;
break; break;
@ -368,8 +370,6 @@ Navigator::task_main()
case NAVIGATION_STATE_AUTO_RTGS: case NAVIGATION_STATE_AUTO_RTGS:
_navigation_mode = &_rtl; /* TODO: change this to something else */ _navigation_mode = &_rtl; /* TODO: change this to something else */
break; break;
case NAVIGATION_STATE_LAND:
case NAVIGATION_STATE_TERMINATION:
case NAVIGATION_STATE_OFFBOARD: case NAVIGATION_STATE_OFFBOARD:
_navigation_mode = &_offboard; _navigation_mode = &_offboard;
break; break;