Avionics
Core avionics package for CURE flight computers
Loading...
Searching...
No Matches
States.h
Go to the documentation of this file.
1#ifndef FLIGHT_STATES_H
2#define FLIGHT_STATES_H
3
4// Not all states are used by all state machines
5// Order matters, systems rely on comparisons like `current_state` > STATE_ASCENT to know if the
6// flight has passed the ascent state and is now falling. So states are ordered from earliest to latest.
7// The literal value of these states should never be used because a new state can be added
8// in between existing states, shifting their values.
9// Keep in mind that there is a difference between states and events. For example,
10// apogee is an event that causes a transition from STATE_ASCENT to STATE_DESCENT, but it is not a state itself.
11// The state machines are in charge of detecting these transitions and updating the states.
23
24#endif
FlightState
Definition States.h:12
@ STATE_MAIN_DEPLOYED
Definition States.h:20
@ STATE_ARMED
Definition States.h:14
@ STATE_LANDED
Definition States.h:21
@ STATE_ASCENT
Definition States.h:15
@ STATE_DROGUE_DEPLOYED
Definition States.h:19
@ STATE_UNARMED
Definition States.h:13
@ STATE_COAST_ASCENT
Definition States.h:17
@ STATE_DESCENT
Definition States.h:18
@ STATE_POWERED_ASCENT
Definition States.h:16