Four state machines (WaitingSM, GameSM, CommSM, HoneyBeeSM) and six event-checkers (Check4Keystroke, CheckBeeBreed, CheckComm, CheckStompPad, CheckPinch, CheckCard) are implemented in our project. The detailed implementation of the state machines and event-checkers are described in the following sections. Source files, header files, state diagrams, and psuedocode are provided in subpages for each state machine and event checker.
Module List
Event-Checker List
Note: CheckStompPad and CheckPinch are implemented as service in a simple state machine due the need for debounce. The service checks the status of the stomp pad and the FSR every 20ms and post events accordingly.