2022-03-25 12:44:43 +01:00
|
|
|
#ifndef COMMON_CONFIG_DEFINITIONS_H_
|
|
|
|
#define COMMON_CONFIG_DEFINITIONS_H_
|
|
|
|
|
|
|
|
#include <cstdint>
|
|
|
|
|
|
|
|
namespace config {
|
|
|
|
|
2022-09-26 11:39:17 +02:00
|
|
|
static constexpr char SD_0_MOUNT_POINT[] = "/mnt/sd0";
|
|
|
|
static constexpr char SD_1_MOUNT_POINT[] = "/mnt/sd1";
|
|
|
|
|
|
|
|
static constexpr char OBSW_UPDATE_ARCHIVE_FILE_NAME[] = "eive-sw-update.tar.xz";
|
|
|
|
static constexpr char STRIPPED_OBSW_BINARY_FILE_NAME[] = "eive-obsw-stripped";
|
2022-09-26 11:50:35 +02:00
|
|
|
static constexpr char OBSW_VERSION_FILE_NAME[] = "obsw_version.txt";
|
2022-09-26 11:39:17 +02:00
|
|
|
|
2022-09-26 12:26:08 +02:00
|
|
|
static constexpr char OBSW_PATH[] = "/usr/bin/eive-obsw";
|
|
|
|
static constexpr char OBSW_VERSION_FILE_PATH[] = "/usr/share/eive-obsw/obsw_version.txt";
|
|
|
|
|
2022-09-16 12:22:46 +02:00
|
|
|
static constexpr uint16_t EIVE_PUS_APID = 0x65;
|
|
|
|
static constexpr uint16_t EIVE_CFDP_APID = 0x66;
|
|
|
|
static constexpr uint16_t EIVE_LOCAL_CFDP_ENTITY_ID = EIVE_CFDP_APID;
|
|
|
|
static constexpr uint16_t EIVE_GROUND_CFDP_ENTITY_ID = 1;
|
|
|
|
|
2022-03-25 18:39:21 +01:00
|
|
|
static constexpr uint32_t PL_PCDU_TRANSITION_TIMEOUT_MS = 20 * 60 * 1000;
|
|
|
|
static constexpr uint32_t LONGEST_MODE_TIMEOUT_SECONDS = PL_PCDU_TRANSITION_TIMEOUT_MS / 1000;
|
|
|
|
|
2022-03-26 13:54:05 +01:00
|
|
|
/* Add mission configuration flags here */
|
|
|
|
static constexpr uint32_t OBSW_FILESYSTEM_HANDLER_QUEUE_SIZE = 50;
|
|
|
|
static constexpr uint32_t PLOC_UPDATER_QUEUE_SIZE = 50;
|
|
|
|
static constexpr uint32_t STR_IMG_HELPER_QUEUE_SIZE = 50;
|
|
|
|
|
|
|
|
static constexpr uint8_t LIVE_TM = 0;
|
|
|
|
|
2022-03-27 10:44:32 +02:00
|
|
|
/* Limits for filename and path checks */
|
|
|
|
static constexpr uint32_t MAX_PATH_SIZE = 100;
|
|
|
|
static constexpr uint32_t MAX_FILENAME_SIZE = 50;
|
|
|
|
|
2022-10-12 15:19:21 +02:00
|
|
|
static constexpr uint32_t SA_DEPL_INIT_BUFFER_SECS = 120;
|
2022-10-13 15:59:56 +02:00
|
|
|
// Burn time for autonomous deployment
|
2022-10-14 20:37:02 +02:00
|
|
|
static constexpr uint32_t SA_DEPL_BURN_TIME_SECS = 180;
|
|
|
|
static constexpr uint32_t SA_DEPL_WAIT_TIME_SECS = 45 * 60;
|
2022-10-13 17:34:33 +02:00
|
|
|
// HW constraints (current limit) mean that the GPIO channels need to be switched on in alternation
|
|
|
|
static constexpr uint32_t SA_DEPL_CHANNEL_ALTERNATION_INTERVAL_SECS = 5;
|
2022-10-13 15:59:56 +02:00
|
|
|
// Maximum allowed burn time allowed by the software.
|
2022-10-14 14:17:20 +02:00
|
|
|
static constexpr uint32_t SA_DEPL_MAX_BURN_TIME = 180;
|
2022-10-12 15:19:21 +02:00
|
|
|
|
2022-05-17 13:40:19 +02:00
|
|
|
} // namespace config
|
2022-03-25 12:44:43 +01:00
|
|
|
|
|
|
|
#endif /* COMMON_CONFIG_DEFINITIONS_H_ */
|