Avionics
Core avionics package for CURE flight computers
Loading...
Searching...
No Matches
BaseStateMachine.h
Go to the documentation of this file.
1
#ifndef BASE_STATE_MACHINE_H
2
#define BASE_STATE_MACHINE_H
3
4
#include "
data_handling/DataPoint.h
"
5
#include "
state_estimation/StateEstimationTypes.h
"
6
#include "
state_estimation/States.h
"
7
13
class
BaseStateMachine
{
14
public
:
22
virtual
int
update
(
const
AccelerationTriplet
& accel,
const
DataPoint
& alt) = 0;
23
29
virtual
uint8_t
getState
()
const
= 0;
30
};
31
32
#endif
DataPoint.h
StateEstimationTypes.h
States.h
BaseStateMachine
Abstract interface for flight state machines driven by IMU/altimeter data.
Definition
BaseStateMachine.h:13
BaseStateMachine::update
virtual int update(const AccelerationTriplet &accel, const DataPoint &alt)=0
Advance the state machine with the latest measurements.
BaseStateMachine::getState
virtual uint8_t getState() const =0
Current discrete state identifier.
DataPoint
Timestamped float measurement container.
Definition
DataPoint.h:11
AccelerationTriplet
Definition
StateEstimationTypes.h:6
include
state_estimation
BaseStateMachine.h
Generated by
1.16.1