![]() |
Da Vinci Firmware 1
Firmware for the DaVinci-M rocket avionics board.
|
Main data structure for the Flight State Machine. More...
#include <flight_control.h>

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. | |
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.
| 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_phase_t flight_fsm_t::flight_state |
The current state of the FSM.
Definition at line 71 of file flight_control.h.
Referenced by change_state_to(), check_AbcsDeployed_phase(), check_Burning_phase(), check_Calibrating_phase(), check_Drogue_phase(), check_flight_phase(), check_Liftoff_phase(), check_Main_phase(), main(), StartMPC_Task(), and StartSensor_Task().
| 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().
| 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().
| 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.
| 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.
| 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().
| uint32_t flight_fsm_t::thrust_trigger_time |
Timestamp when initial thrust was detected.
Definition at line 77 of file flight_control.h.