forked from Archive/PX4-Autopilot
navigator: correct mode for land and termination
This commit is contained in:
parent
24b1ff23f2
commit
3e1de713af
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue