STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
flight_state.h
Go to the documentation of this file.
1#pragma once
2
3#include <Arduino.h>
4
5enum class FlightState : uint8_t {
6 Idle = 0,
7 Launch = 1,
8 Active = 2,
9 Venting = 3,
10};
11
12void flightStateInit();
14void flightStateTick();
15
16/** Idle → Launch (call from main when LIS3 launch ISR fires). */
18
19/** Launch → Active when apogee algorithm confirms (only valid from Launch). */
21
22/** Active → Venting when Active timer expires. */
24
void flightStateOnActiveTimeout()
Active → Venting when Active timer expires.
FlightState
Definition flight_state.h:5
void runNoseConeControlLoop()
FlightState flightStateGet()
void flightStateInit()
void flightStateOnLaunchDetect()
Idle → Launch (call from main when LIS3 launch ISR fires).
void flightStateOnApogee()
Launch → Active when apogee algorithm confirms (only valid from Launch).
void applyActuatorOutputs()
void flightStateTick()