You are on page 1of 1

Z:\_218aTeams\Team12 - The Dirty Dozen\FINAL PROJECT MACHINES\ControllerA\Headers\GameFSM.

Sunday, December 01, 2013 5:39 PM

/**************************************************************************** Header file for template Flat Sate Machine based on the Gen2 Events and Services Framework ****************************************************************************/ #ifndef GameFSM_H #define GameFSM_H // Event Definitions #include "ES_Configure.h" #include "ES_Types.h" // typedefs for the states // State definitions for use with the query function typedef enum { InitPState, Lockdown, WaitForReady, AReady, BReady, WaitTargetPractice, BalancedBPractice, NotBalancedBPractice, WaitingTargetSynchro, OffBalanceSynchro, Celebration } GameState_t ;

// Public Function Prototypes bool InitGameFSM ( uint8_t Priority ); bool PostGameFSM( ES_Event ThisEvent ); ES_Event RunGameFSM( ES_Event ThisEvent ); GameState_t QueryGameFSM ( void ); #define ACCESS_REMOVED 'w' #endif /* FSMTemplate_H */

-1-

You might also like