Spaceshot Flight Software
The Illinois Space Society's Homemade Rocket Firmware
TimerFSM Class Reference
Inheritance diagram for TimerFSM:
RocketFSM

Public Member Functions

 TimerFSM (pointers *)
 Constructor for TimerFSM class. More...
 
virtual void tickFSM () override
 TimerFSM tick function. More...
 
- Public Member Functions inherited from RocketFSM
FSM_State getFSMState () const
 

Additional Inherited Members

- Public Types inherited from RocketFSM
enum class  FSM_State {
  STATE_INIT , STATE_IDLE , STATE_LAUNCH_DETECT , STATE_BOOST ,
  STATE_BURNOUT_DETECT , STATE_COAST_PREGNC , STATE_COAST_GNC , STATE_APOGEE_DETECT ,
  STATE_APOGEE , STATE_DROGUE_DETECT , STATE_DROGUE , STATE_MAIN_DETECT ,
  STATE_MAIN , STATE_LANDED_DETECT , STATE_LANDED , STATE_ABORT
}
 Labels for each FSM state. Contains intermediary states (eg: Launch Detect) along with actual states (eg: Boost)
 
- Protected Attributes inherited from RocketFSM
FSM_State rocket_state_ = FSM_State::STATE_INIT
 

Constructor & Destructor Documentation

◆ TimerFSM()

TimerFSM::TimerFSM ( pointers ptr)

Constructor for TimerFSM class.

Parameters
pointersTaking the pointer struct as an input, we define member variables that point to different data members of pointer struct. This improves readability while also allowing the rocketFSM class to modify values in the global pointer struct.

Member Function Documentation

◆ tickFSM()

void TimerFSM::tickFSM ( )
overridevirtual

TimerFSM tick function.

Uses a combination of linear acceleration and timers to govern FSM state changes for each timestep of the rocket's flight.

Implements RocketFSM.


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