Avionics
Core avionics package for CURE flight computers
Loading...
Searching...
No Matches
BurnoutStateMachine Class Reference

State machine variant that explicitly models motor burnout before coast. More...

#include <BurnoutStateMachine.h>

Inheritance diagram for BurnoutStateMachine:
Inheritance graph
Collaboration diagram for BurnoutStateMachine:
Collaboration graph

Public Member Functions

 BurnoutStateMachine (IDataSaver *dataSaver, LaunchDetector *launchDetector, ApogeeDetector *apogeeDetector, VerticalVelocityEstimator *verticalVelocityEstimator)
 Construct with logging and detector dependencies.
int update (const AccelerationTriplet &accel, const DataPoint &alt) override
 Update machine with new sensor inputs and transition on burnout cues.
uint8_t getState () const override
 Current state identifier.

Detailed Description

State machine variant that explicitly models motor burnout before coast.

Note
When to use: flights requiring a distinct burnout phase separate from powered ascent and coast, originally designed for aerobrake testing.

Definition at line 18 of file BurnoutStateMachine.h.

Constructor & Destructor Documentation

◆ BurnoutStateMachine()

BurnoutStateMachine::BurnoutStateMachine ( IDataSaver * dataSaver,
LaunchDetector * launchDetector,
ApogeeDetector * apogeeDetector,
VerticalVelocityEstimator * verticalVelocityEstimator )

Construct with logging and detector dependencies.

Parameters
dataSaverLogger used to persist transitions.
launchDetectorLaunch detector instance.
apogeeDetectorApogee detector instance.
verticalVelocityEstimatorVertical velocity estimator instance.
Note
When to use: setup time wiring of components prior to loop.

Definition at line 13 of file BurnoutStateMachine.cpp.

Member Function Documentation

◆ getState()

uint8_t BurnoutStateMachine::getState ( ) const
overridevirtual

Current state identifier.

Note
When to use: consumers needing current phase (e.g., pyro logic).

Implements BaseStateMachine.

Definition at line 108 of file BurnoutStateMachine.cpp.

◆ update()

int BurnoutStateMachine::update ( const AccelerationTriplet & accel,
const DataPoint & alt )
overridevirtual

Update machine with new sensor inputs and transition on burnout cues.

Parameters
accelLatest acceleration readings.
altLatest altitude sample.
Note
When to use: call each sensor update; return value can reflect transition outcomes.

Implements BaseStateMachine.

Definition at line 25 of file BurnoutStateMachine.cpp.


The documentation for this class was generated from the following files: