Loading...
Searching...
No Matches
State

Data Structures

struct  State
 State variable struct. More...
 

Enumerations

enum  State {
  PRELAUNCH , LAUNCH , COAST , APOGEE ,
  DESCENT
}
 Flight state enum. More...
 

Functions

void State_init ()
 
StateState_getState ()
 

Detailed Description


Data Structure Documentation

◆ State

struct State

State variable struct.

Maintains current values for state variables

Definition at line 36 of file state.h.

Enumeration Type Documentation

◆ State

enum State

Flight state enum.

Describes the current phase of flight

Enumerator
PRELAUNCH 

Initial boot condition.

LAUNCH 

Body reference Z-axis acceleration above threshold.

COAST 

Global reference Z-axis velocity decreasing.

APOGEE 

At least 2: velocity negative, pressure increasing, tilt > 90 degrees.

DESCENT 

Altitude below main threshold.

Definition at line 24 of file state.h.

Function Documentation

◆ State_init()

void State_init ( )
Parameters

return


Definition at line 45 of file state.c.

◆ State_getState()

State * State_getState ( )
Parameters

return


Definition at line 69 of file state.c.