|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
#include <stdbool.h>Go to the source code of this file.
Enumerations | |
| enum | flight_state_t { FLIGHT_SELF_TEST = 0 , FLIGHT_IDLE , FLIGHT_ARMED , FLIGHT_LAUNCHED , FLIGHT_RECOVERY , FLIGHT_STATE_COUNT } |
| enum | flight_event_t { FLIGHT_EV_SELF_TEST_DONE = 0 , FLIGHT_EV_ARM , FLIGHT_EV_UNARM , FLIGHT_EV_LAUNCH_DETECTED , FLIGHT_EV_APOGEE_DETECTED , FLIGHT_EVENT_COUNT } |
Functions | |
| flight_state_t | flight_state_next (flight_state_t state, flight_event_t event) |
| bool | flight_state_logs_to_emmc (flight_state_t state) |
| const char * | flight_state_name (flight_state_t state) |
| enum flight_event_t |
| Enumerator | |
|---|---|
| FLIGHT_EV_SELF_TEST_DONE | |
| FLIGHT_EV_ARM | |
| FLIGHT_EV_UNARM | |
| FLIGHT_EV_LAUNCH_DETECTED | |
| FLIGHT_EV_APOGEE_DETECTED | |
| FLIGHT_EVENT_COUNT | |
Definition at line 34 of file flight_state.h.
| enum flight_state_t |
| Enumerator | |
|---|---|
| FLIGHT_SELF_TEST | |
| FLIGHT_IDLE | |
| FLIGHT_ARMED | |
| FLIGHT_LAUNCHED | |
| FLIGHT_RECOVERY | |
| FLIGHT_STATE_COUNT | |
Definition at line 25 of file flight_state.h.
| bool flight_state_logs_to_emmc | ( | flight_state_t | state | ) |
Definition at line 22 of file flight_state.c.
References FLIGHT_ARMED, FLIGHT_LAUNCHED, FLIGHT_RECOVERY, and state.
Referenced by emmc_log_on_state(), and test_logging_states().
| const char * flight_state_name | ( | flight_state_t | state | ) |
Definition at line 27 of file flight_state.c.
References FLIGHT_ARMED, FLIGHT_IDLE, FLIGHT_LAUNCHED, FLIGHT_RECOVERY, FLIGHT_SELF_TEST, and state.
Referenced by test_names().
| flight_state_t flight_state_next | ( | flight_state_t | state, |
| flight_event_t | event ) |
Definition at line 3 of file flight_state.c.
References FLIGHT_ARMED, FLIGHT_EV_APOGEE_DETECTED, FLIGHT_EV_ARM, FLIGHT_EV_LAUNCH_DETECTED, FLIGHT_EV_SELF_TEST_DONE, FLIGHT_EV_UNARM, FLIGHT_IDLE, FLIGHT_LAUNCHED, FLIGHT_RECOVERY, FLIGHT_SELF_TEST, and state.
Referenced by idle_task(), mode_route_command(), anonymous_namespace{idle_e2e.cpp}::run(), test_flight_keeps_recording(), and test_table().