mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-05 16:50:35 +08:00
navigator: correctly use all navigator modes
This commit is contained in:
@@ -65,9 +65,8 @@
|
||||
|
||||
/**
|
||||
* Number of navigation modes that need on_active/on_inactive calls
|
||||
* Currently: mission, loiter, and rtl
|
||||
*/
|
||||
#define NAVIGATOR_MODE_ARRAY_SIZE 4
|
||||
#define NAVIGATOR_MODE_ARRAY_SIZE 6
|
||||
|
||||
class Navigator : public control::SuperBlock
|
||||
{
|
||||
|
||||
@@ -141,6 +141,8 @@ Navigator::Navigator() :
|
||||
_navigation_mode_array[1] = &_loiter;
|
||||
_navigation_mode_array[2] = &_rtl;
|
||||
_navigation_mode_array[3] = &_offboard;
|
||||
_navigation_mode_array[4] = &_dataLinkLoss;
|
||||
_navigation_mode_array[5] = &_engineFailure;
|
||||
|
||||
updateParams();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user