/****************************************************************************
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 HSMTemplate_H
#define HSMTemplate_H
// typedefs for the states
// State definitions for use with the query function
typedef enum { WaitTargetTracking, RotateToTarget, DriveToTarget, FastOntoRamp }
TargetTrackingState_t ;
// Public Function Prototypes
ES_Event RunTargetTracking( ES_Event CurrentEvent );
void StartTargetTracking ( ES_Event CurrentEvent );
TargetTrackingState_t QueryTargetTrackingState ( void );
void InitTargetTrackingControl(void);
bool TargetReached(void);
bool TargetInSight(void);
void SetTarget(double x, double y);
#endif /*SHMTemplate_H */