This header file defines types and function prototypes for a hierarchical state machine that controls the location of an object. It defines an enumeration for the different location states such as GoingToPosition1 and GoingToPosition2AfterBall. It also prototypes functions to run and start the state machine, and to query the current location state.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
148 views1 page
Location H
This header file defines types and function prototypes for a hierarchical state machine that controls the location of an object. It defines an enumeration for the different location states such as GoingToPosition1 and GoingToPosition2AfterBall. It also prototypes functions to run and start the state machine, and to query the current location state.
Template header file for Hierarchical Sate Machines AKA StateCharts
02/08/12 adjsutments for use with the Events and Services Framework Gen2 3/17/09 Fixed prototpyes to use Event_t ****************************************************************************/ #ifndef Location_H #define Location_H // typedefs for the states // State definitions for use with the query function typedef enum { GoingToPosition1, GoingToPosition2, GoingToPosition3, GoingToPosition4, GoingToPosition5, GoingToPosition6, GoingToPosition7, GoingToPosition8, GoingToPosition2AfterBall, BallShooting} LocationState_t ; // Public Function Prototypes ES_Event RunLocationSM( ES_Event CurrentEvent ); void StartLocationSM ( ES_Event CurrentEvent ); LocationState_t QueryLocationSM ( void ); #endif /*Location_H */