|
CTS-SAT-1-OBC-Firmware
|
#include "telecommand_exec/agenda_from_file.h"#include "telecommand_exec/telecommand_parser.h"#include "telecommand_exec/telecommand_executor.h"#include "littlefs/littlefs_helper.h"#include "log/log.h"
Functions | |
| uint8_t | TCMD_parse_tcmds_from_file_and_enqueue (const char *file_path, uint64_t min_tsexec_inclusive, uint64_t max_tsexec_exclusive, uint16_t max_enqueue_count) |
| Parses a file of telecommands and enqueues them into the agenda. | |
Variables | |
| char * | TCMD_active_agenda_filename_disabled_sentinel = "DISABLED" |
| When TCMD_active_agenda_filename is set to this value, agenda loading is disabled. | |
| char * | TCMD_active_agenda_filename_default_file = "default_tcmd_agenda.txt" |
| char | TCMD_active_agenda_filename [LFS_MAX_PATH_LENGTH] = "default_tcmd_agenda.txt" |
| The file path of the agenda file to load upcoming telecommands from. | |
| uint8_t TCMD_parse_tcmds_from_file_and_enqueue | ( | const char * | file_path, |
| uint64_t | min_tsexec_inclusive, | ||
| uint64_t | max_tsexec_exclusive, | ||
| uint16_t | max_enqueue_count ) |
Parses a file of telecommands and enqueues them into the agenda.
| file_path | Path to file with one telecommand per line. |
| min_tsexec_inclusive | Filter to only telecommands with tsexec greater than or equal to this value. |
| max_tsexec_exclusive | Filter to only telecommands with tsexec less than this value. |
| max_enqueue_count | Maximum number of telecommands to enqueue. Stop after this many successes. Mostly for safety. |
The file should have one telecommand per line, like so: CTS1+xxx(...)!\nCTS1+yyy(...)!\n


| char TCMD_active_agenda_filename[LFS_MAX_PATH_LENGTH] = "default_tcmd_agenda.txt" |
The file path of the agenda file to load upcoming telecommands from.
| char* TCMD_active_agenda_filename_default_file = "default_tcmd_agenda.txt" |
| char* TCMD_active_agenda_filename_disabled_sentinel = "DISABLED" |
When TCMD_active_agenda_filename is set to this value, agenda loading is disabled.