sfuphantom / hercules-phantom-lib

A common firmware library for all Team Phantom PCBs based off of the TMS570LS1224/1227 Hercules line
0 stars 0 forks source link

State machine module #7

Open rafguevara14 opened 7 months ago

rafguevara14 commented 7 months ago

refer to readme

This module acts as a refactor for the current VCU state machine, as well as an easier and simpler implementation for future state machines on the BMS. It uses the concept of state transition tables (STT) where an array of structs is used to define the behaviour of the state machine. At runtime, it will look for the current state and event in the STT, and transition if the definition exists.