Da Vinci Firmware 1
Firmware for the DaVinci-M rocket avionics board.
Loading...
Searching...
No Matches
flight_fsm_t Struct Reference

Main data structure for the Flight State Machine. More...

#include <flight_control.h>

Collaboration diagram for flight_fsm_t:

Data Fields

flight_phase_t flight_state
 The current state of the FSM.
 
linear_acceleration_t old_acc_data
 Raw acceleration data from the previous cycle.
 
linear_acceleration_t old_gyro_data
 Raw gyroscope data from the previous cycle.
 
uint32_t clock_memory
 Timestamp of the last state transition.
 
uint32_t memory [3]
 General-purpose memory for state-specific logic.
 
uint32_t memory_bis [3]
 Additional general-purpose memory.
 
uint32_t thrust_trigger_time
 Timestamp when initial thrust was detected.
 
bool state_changed
 Flag set to true for one cycle after a state change.
 

Detailed Description

Main data structure for the Flight State Machine.

This object holds all persistent data required to manage the rocket's state, including the current phase, sensor history, and timing information.

Definition at line 70 of file flight_control.h.

Field Documentation

◆ clock_memory

uint32_t flight_fsm_t::clock_memory

Timestamp of the last state transition.

Definition at line 74 of file flight_control.h.

Referenced by clear_fsm_memory().

◆ flight_state

◆ memory

uint32_t flight_fsm_t::memory[3]

General-purpose memory for state-specific logic.

Definition at line 75 of file flight_control.h.

Referenced by check_AbcsDeployed_phase(), check_Burning_phase(), check_Calibrating_phase(), check_Drogue_phase(), check_Liftoff_phase(), check_Main_phase(), and clear_fsm_memory().

◆ memory_bis

uint32_t flight_fsm_t::memory_bis[3]

Additional general-purpose memory.

Definition at line 76 of file flight_control.h.

Referenced by check_Burning_phase(), check_Calibrating_phase(), and check_Liftoff_phase().

◆ old_acc_data

linear_acceleration_t flight_fsm_t::old_acc_data

Raw acceleration data from the previous cycle.

Definition at line 72 of file flight_control.h.

◆ old_gyro_data

linear_acceleration_t flight_fsm_t::old_gyro_data

Raw gyroscope data from the previous cycle.

Definition at line 73 of file flight_control.h.

◆ state_changed

bool flight_fsm_t::state_changed

Flag set to true for one cycle after a state change.

Definition at line 78 of file flight_control.h.

Referenced by check_flight_phase().

◆ thrust_trigger_time

uint32_t flight_fsm_t::thrust_trigger_time

Timestamp when initial thrust was detected.

Definition at line 77 of file flight_control.h.


The documentation for this struct was generated from the following file: