Thanks to visit codestin.com
Credit goes to www.scribd.com

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

Embedded Systems Shooting Module

This document defines types and functions for a shooting state machine. It defines an enumeration for shooting states including waiting for flywheel, waiting for ball wheel, and waiting for shot. It also prototypes functions for running and starting the shooting state machine, and querying the current state.

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)
34 views1 page

Embedded Systems Shooting Module

This document defines types and functions for a shooting state machine. It defines an enumeration for shooting states including waiting for flywheel, waiting for ball wheel, and waiting for shot. It also prototypes functions for running and starting the shooting state machine, and querying the current state.

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

#ifndef Shooting_SM_H

#define Shooting_SM_H

// typedefs for the states


// State definitions for use with the query function
typedef enum { WAITING_FOR_FLYWHEEL, WAITING_FOR_BALL_WHEEL,
WAITING_FOR_SHOT} ShootingState_t ;

// Public Function Prototypes

ES_Event_t RunShootingSM( ES_Event_t CurrentEvent );


void StartShootingSM ( ES_Event_t CurrentEvent );
ShootingState_t QueryShootingSM ( void );

#endif /*Shooting_SM_H */

You might also like