0% found this document useful (0 votes)
89 views1 page

Offense State Machine Header File

This document contains header information for a hierarchical state machine called OffenseSM. It includes typedefs for different offense states like OffDrive4Offset and Drive2Goal. It also contains function prototypes for running and starting the OffenseSM and querying its current state.

Uploaded by

api-397492879
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
89 views1 page

Offense State Machine Header File

This document contains header information for a hierarchical state machine called OffenseSM. It includes typedefs for different offense states like OffDrive4Offset and Drive2Goal. It also contains function prototypes for running and starting the OffenseSM and querying its current state.

Uploaded by

api-397492879
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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

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 OffenseSM_H
#define OffenseSM_H

// typedefs for the states


// State definitions for use with the query function
typedef enum { OffDrive4Offset, Look4Goal, Drive2Goal, Fire, Rest} OffenseState_t
;

// Public Function Prototypes


ES_Event_t RunOffenseSM ( ES_Event_t CurrentEvent );
void StartOffenseSM ( ES_Event_t CurrentEvent );
OffenseState_t QueryOffenseSM ( void );

#endif /*OffenseSM_H */

You might also like