Mantis: save mission in RAM

This is using a reduced number of mission items of 1000 instead of 2000
in order to fit in RAM.
This commit is contained in:
Julian Oes 2021-10-04 09:13:37 +02:00 committed by Daniel Agar
parent 7d09635fb6
commit cb15728536
3 changed files with 7 additions and 1 deletions

View File

@ -20,7 +20,10 @@ param set-default EV_TSK_STAT_DIS 1
set LOGGER_ARGS "-m mavlink"
# Start esc
# Save missions RAM
set DATAMAN_ARGS "-r"
# Start ESC already here, so that we have beeps.
tap_esc start -d /dev/ttyS4 -n 4
# Transition from previous non open-source flight stack

View File

@ -59,6 +59,7 @@
#define BOARD_ARMED_STATE_LED LED_BLUE
#define FLASH_BASED_PARAMS
#define RAM_BASED_MISSIONS
/*
* ADC channels

View File

@ -48,6 +48,8 @@
# define NUM_MISSIONS_SUPPORTED 50
#elif defined(__PX4_POSIX)
# define NUM_MISSIONS_SUPPORTED (UINT16_MAX-1) // This is allocated as needed.
#elif defined(RAM_BASED_MISSIONS)
# define NUM_MISSIONS_SUPPORTED 500
#else
# define NUM_MISSIONS_SUPPORTED 500
#endif