mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-18 03:50:35 +08:00
Navigator: add NUM_MISSION_ITMES_SUPPORTED to kconfig
Signed-off-by: Silvan <silvan@auterion.com> boards: increase max mission items for boards with >=1kb RAM to 1000 Signed-off-by: Silvan <silvan@auterion.com> boards: increase NUM_MISSION_ITMES_SUPPORTED for SITL to 10000 Signed-off-by: Silvan <silvan@auterion.com>
This commit is contained in:
@@ -72,8 +72,8 @@ enum {
|
||||
DM_KEY_SAFE_POINTS_STATE_MAX = 1,
|
||||
DM_KEY_FENCE_POINTS_MAX = 64,
|
||||
DM_KEY_FENCE_POINTS_STATE_MAX = 1,
|
||||
DM_KEY_WAYPOINTS_OFFBOARD_0_MAX = NUM_MISSIONS_SUPPORTED,
|
||||
DM_KEY_WAYPOINTS_OFFBOARD_1_MAX = NUM_MISSIONS_SUPPORTED,
|
||||
DM_KEY_WAYPOINTS_OFFBOARD_0_MAX = CONFIG_NUM_MISSION_ITMES_SUPPORTED,
|
||||
DM_KEY_WAYPOINTS_OFFBOARD_1_MAX = CONFIG_NUM_MISSION_ITMES_SUPPORTED,
|
||||
DM_KEY_MISSION_STATE_MAX = 1,
|
||||
DM_KEY_COMPAT_MAX = 1
|
||||
};
|
||||
|
||||
@@ -27,3 +27,12 @@ menuconfig NAVIGATOR_ADSB
|
||||
---help---
|
||||
Add support for acting on ADSB transponder_report or ADSB_VEHICLE MAVLink messages.
|
||||
Actions are warnings, Loiter, Land and RTL without climb.
|
||||
|
||||
menuconfig NUM_MISSION_ITMES_SUPPORTED
|
||||
int "Maximum number of mission items"
|
||||
default 500
|
||||
depends on MODULES_NAVIGATOR
|
||||
---help---
|
||||
This limit always applies if mission items are stored on the SD card or in RAM. It should be set
|
||||
adequately per boards such that if the items are stored in RAM they still fit the available memory.
|
||||
The runtime parameter to configure the storage option is `SYS_DM_BACKEND`.
|
||||
|
||||
@@ -46,12 +46,6 @@
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#if defined(__PX4_POSIX)
|
||||
# define NUM_MISSIONS_SUPPORTED (UINT16_MAX-1) // This is allocated as needed.
|
||||
#else
|
||||
# define NUM_MISSIONS_SUPPORTED 500
|
||||
#endif
|
||||
|
||||
/* compatible to mavlink MAV_CMD */
|
||||
enum NAV_CMD {
|
||||
NAV_CMD_IDLE = 0,
|
||||
|
||||
Reference in New Issue
Block a user