0% found this document useful (0 votes)
149 views

Actionmachine H

This header file defines types and function prototypes for a hierarchical state machine to model an action. It defines an enumerated type for the different states - WaitForStart, Location, CautionFlag, RaceOver. It prototypes three public functions: RunAction which takes an event and runs the state machine; StartAction which takes an event and starts the action; and QueryActionState which returns the current state.

Uploaded by

api-272643960
Copyright
© © All Rights Reserved
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
149 views

Actionmachine H

This header file defines types and function prototypes for a hierarchical state machine to model an action. It defines an enumerated type for the different states - WaitForStart, Location, CautionFlag, RaceOver. It prototypes three public functions: RunAction which takes an event and runs the state machine; StartAction which takes an event and starts the action; and QueryActionState which returns the current state.

Uploaded by

api-272643960
Copyright
© © All Rights Reserved
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 1

/****************************************************************************

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 ActionMachine_H
#define ActionMachine_H
// typedefs for the states
// State definitions for use with the query function
typedef enum { WaitForStart, Location, CautionFlag, RaceOver } ActionState_t ;
// Public Function Prototypes
ES_Event RunAction( ES_Event CurrentEvent );
void StartAction ( ES_Event CurrentEvent );
ActionState_t QueryActionState ( void );
#endif /*ActionMachine_H */

You might also like