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

Defensesm

This header file defines types and function prototypes for a hierarchical state machine for modeling defense behaviors. It defines an enumerated type for the different defense states including driving with an offset, looking for the opponent, driving toward the opponent, and taking a defensive action. Prototypes are provided for functions to run and start the state machine, and 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)
75 views1 page

Defensesm

This header file defines types and function prototypes for a hierarchical state machine for modeling defense behaviors. It defines an enumerated type for the different defense states including driving with an offset, looking for the opponent, driving toward the opponent, and taking a defensive action. Prototypes are provided for functions to run and start the state machine, and 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 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 DefenseSM_H
#define DefenseSM_H

// typedefs for the states


// State definitions for use with the query function
typedef enum { DefDrive4Offset, Look4Opp, Drive2Opp, DefAct } DefenseState_t ;

// Public Function Prototypes


ES_Event_t RunDefenseSM ( ES_Event_t CurrentEvent );
void StartDefenseSM ( ES_Event_t CurrentEvent );
DefenseState_t QueryDefenseSM ( void );

#endif /*DefenseSM_H */

You might also like