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

Faceoffsm

This header file defines types and functions for a state machine called FaceOffSM. It defines an enum with 8 states for the state machine including Drive4Offset, Turn2Reload, and Reload. It also prototypes 3 public functions - RunFaceOffSM to run the state machine, StartFaceOffSM to initialize it, and QueryFaceOffSM to query the 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)
46 views1 page

Faceoffsm

This header file defines types and functions for a state machine called FaceOffSM. It defines an enum with 8 states for the state machine including Drive4Offset, Turn2Reload, and Reload. It also prototypes 3 public functions - RunFaceOffSM to run the state machine, StartFaceOffSM to initialize it, and QueryFaceOffSM to query the 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
You are on page 1/ 1

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

Template header file for FaceOffSM

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

#ifndef FaceOffSM_H
#define FaceOffSM_H

// typedefs for the states


// State definitions for use with the query function
typedef enum { Drive4Offset, Turn2Reload, Drive4Offset2, Look4Reload, Drive2Reload,
Look4Emitter, Drive2Emitter, Reload } FaceOffState_t ;

// Public Function Prototypes


ES_Event_t RunFaceOffSM ( ES_Event_t CurrentEvent );
void StartFaceOffSM ( ES_Event_t CurrentEvent );
FaceOffState_t QueryFaceOffSM ( void );

#endif /*FaceOffSM_H */

You might also like