STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
mode_core.h File Reference
#include <stdbool.h>
#include "flight_state.h"
Include dependency graph for mode_core.h:
This graph shows which files directly or indirectly include this file:

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)

Macro Definition Documentation

◆ MODE_SNIFF_RX_MS

#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().

◆ MODE_SNIFF_SLEEP_MS

#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().

Enumeration Type Documentation

◆ mode_command_t

Enumerator
MODE_CMD_ARM 
MODE_CMD_DISARM 

Definition at line 43 of file mode_core.h.

◆ mode_route_t

Enumerator
MODE_TO_IDLE_LOOP 
MODE_TRANSITION 
MODE_IGNORE 

Definition at line 45 of file mode_core.h.

Function Documentation

◆ mode_outputs()

◆ mode_route_command()