|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Go to the source code of this file.
Classes | |
| struct | mode_outputs_t |
Macros | |
| #define | MODE_SNIFF_RX_MS 33U |
| #define | MODE_SNIFF_SLEEP_MS 1000U |
Enumerations | |
| enum | mode_command_t { MODE_CMD_ARM = 1 , MODE_CMD_DISARM } |
| enum | mode_route_t { MODE_TO_IDLE_LOOP , MODE_TRANSITION , MODE_IGNORE } |
Functions | |
| mode_outputs_t | mode_outputs (flight_state_t state) |
| mode_route_t | mode_route_command (flight_state_t state, mode_command_t command, flight_state_t *next) |
| #define MODE_SNIFF_RX_MS 33U |
Definition at line 38 of file mode_core.h.
Referenced by app_set_state(), and anonymous_namespace{idle_e2e.cpp}::set_state().
| #define MODE_SNIFF_SLEEP_MS 1000U |
Definition at line 39 of file mode_core.h.
Referenced by app_set_state(), and anonymous_namespace{idle_e2e.cpp}::set_state().
| enum mode_command_t |
| Enumerator | |
|---|---|
| MODE_CMD_ARM | |
| MODE_CMD_DISARM | |
Definition at line 43 of file mode_core.h.
| enum mode_route_t |
| Enumerator | |
|---|---|
| MODE_TO_IDLE_LOOP | |
| MODE_TRANSITION | |
| MODE_IGNORE | |
Definition at line 45 of file mode_core.h.
| mode_outputs_t mode_outputs | ( | flight_state_t | state | ) |
Definition at line 3 of file mode_core.c.
References FLIGHT_ARMED, FLIGHT_IDLE, FLIGHT_LAUNCHED, FLIGHT_RECOVERY, o, and state.
Referenced by app_set_state(), anonymous_namespace{idle_e2e.cpp}::check_idle_arm_wake(), anonymous_namespace{idle_e2e.cpp}::set_state(), test_armed_onwards_runs_everything(), and test_idle_keeps_only_the_radio().
| mode_route_t mode_route_command | ( | flight_state_t | state, |
| mode_command_t | command, | ||
| flight_state_t * | next ) |
Definition at line 23 of file mode_core.c.
References FLIGHT_EV_ARM, FLIGHT_EV_UNARM, FLIGHT_IDLE, flight_state_next(), MODE_CMD_ARM, MODE_IGNORE, MODE_TO_IDLE_LOOP, MODE_TRANSITION, and state.
Referenced by app_command(), anonymous_namespace{idle_e2e.cpp}::radio_task(), and test_commands().