Skip to content

Commit

Permalink
Navigator/boards: introduce RAM_CONSTRAINED_SYSTEM for reduced missio…
Browse files Browse the repository at this point in the history
…n length

Bump the max mission item amount to 1000, and set to 500 if this new
define is set for boards with less RAM.

Signed-off-by: Silvan <[email protected]>
  • Loading branch information
sfuhrer committed Jan 24, 2025
1 parent 8c40810 commit 2f9a299
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 2 deletions.
1 change: 1 addition & 0 deletions boards/px4/fmu-v2/src/board_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@

#define BOARD_HAS_ON_RESET 1

#define RAM_CONSTRAINED_SYSTEM

__BEGIN_DECLS

Expand Down
2 changes: 2 additions & 0 deletions boards/px4/fmu-v3/src/board_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@
*/
#define PX4IO_HEATER_ENABLED

#define RAM_CONSTRAINED_SYSTEM

__BEGIN_DECLS

/****************************************************************************************************
Expand Down
1 change: 1 addition & 0 deletions boards/px4/fmu-v4/src/board_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@

#define BOARD_HAS_ON_RESET 1

#define RAM_CONSTRAINED_SYSTEM

__BEGIN_DECLS

Expand Down
2 changes: 2 additions & 0 deletions boards/px4/fmu-v4pro/src/board_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,8 @@

#define BOARD_HAS_STATIC_MANIFEST 1

#define RAM_CONSTRAINED_SYSTEM

__BEGIN_DECLS

/****************************************************************************************************
Expand Down
1 change: 1 addition & 0 deletions boards/px4/fmu-v5/src/board_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,7 @@

#define BOARD_NUM_IO_TIMERS 5

#define RAM_CONSTRAINED_SYSTEM

__BEGIN_DECLS

Expand Down
3 changes: 2 additions & 1 deletion boards/px4/fmu-v5x/src/board_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -436,9 +436,10 @@

#define BOARD_NUM_IO_TIMERS 5


#define PX4_I2C_BUS_MTD 4,5

#define RAM_CONSTRAINED_SYSTEM

__BEGIN_DECLS

/****************************************************************************************************
Expand Down
4 changes: 3 additions & 1 deletion src/modules/navigator/navigation.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,10 @@
# define NUM_MISSIONS_SUPPORTED 50
#elif defined(__PX4_POSIX)
# define NUM_MISSIONS_SUPPORTED (UINT16_MAX-1) // This is allocated as needed.
#else
#elif defined(RAM_CONSTRAINED_SYSTEM)
# define NUM_MISSIONS_SUPPORTED 500
#else
# define NUM_MISSIONS_SUPPORTED 1000
#endif

#define NAV_EPSILON_POSITION 0.001f /**< Anything smaller than this is considered zero */
Expand Down

0 comments on commit 2f9a299

Please sign in to comment.