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.
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 ratings0% 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.
// 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 ;