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

Offenseh

This header file defines functions and enumerations for a hierarchical state machine to control an offensive robot. It defines enumerations for the different offense states like reloading, rotating to shoot, and shooting. It also prototypes public functions for running and starting the offense state machine, querying the current state, and resetting states like set faceoff false and reset retro edges.

Uploaded by

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

Offenseh

This header file defines functions and enumerations for a hierarchical state machine to control an offensive robot. It defines enumerations for the different offense states like reloading, rotating to shoot, and shooting. It also prototypes public functions for running and starting the offense state machine, querying the current state, and resetting states like set faceoff false and reset retro edges.

Uploaded by

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

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

Offense 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 Offense_SM_H
#define Offense_SM_H

// typedefs for the states


// State definitions for use with the query function
typedef enum { RELOADING, /*LINE_FOLLOWING_OFFENSE,*/ ROTATING_TO_SHOOT,
MOVING_BACKWARD, FINDING_SHOT, SHOOTING, ROTATING_TO_DEFINITELY_SHOOT }
OffenseState_t ;

// Public Function Prototypes

ES_Event_t RunOffenseSM( ES_Event_t CurrentEvent );


void StartOffenseSM ( ES_Event_t CurrentEvent );
OffenseState_t QueryOffenseSM ( void );
void SetFaceoffFalse(void);
void ResetRetroEdges(void);

#endif /*Offense_SM_H */

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy