1 /****************************************************************************
  2  Header file for defining Events
  3  Note: the first 3 entries are assumed by the template code. The rest are
  4  completely implementation defined.
  5  ****************************************************************************/
  6 #ifndef SMEvents_H
  7 #define SMEvents_H
  8 
  9 
 10 //static char SpeedSet;
 11 
 12 // Universal events take up 0,1 & 2. User Events start at 3
 13 typedef enum {  EV_NO_EVENT,
 14                 EV_ENTRY,
 15                 EV_EXIT,
 16                 EV_NEW_TARGET,
 17                 EV_HIT_TARGET,
 18                 EV_ARRIVED,
 19                 EV_GAME_START,
 20                 EV_GAME_OVER,
 21                 EV_TAPE1,
 22                 EV_TAPE2,
 23                 EV_TAPE3,
 24                 EV_TAPE5,
 25                 EV_IR,
 26                 EV_HIT,
 27 
 28 
 29                 EV_ROTATE_DONE,
 30                 EV_BALL_IS_RELEASED,
 31                 EV_TARGET_HIT,
 32                 EV_TARGET_MISSED,
 33                 EV_TAPE_FOUND,
 34                 EV_TAPE_ALIGNED,
 35                 EV_TIntersect_FOUND,
 36 
 37                 EV_START_GAME,
 38                 EV_RETURN_HOME,
 39                 EV_REACH_HOME,
 40                 EV_GOT_HOME,
 41                 EV_ROTATE_HOME,
 42 
 43 
 44                 EV_RECIEVED_TARGET ,
 45                  EV_BEACON_INNACTIVE ,
 46                   EV_BEACON_ACTIVE_NOT_ILLUM,
 47                  EV_BEACON_ACTIVE_ILLUM ,
 48                      EV_BEACON_HIT  ,
 49                      EV_GAME_NOT_STARTED  ,
 50                        EV_GAME_OVER_RED_WINS,
 51                      EV_GAME_OVER_GREEN_WINS,
 52                    EV_OFFLINE,
 53                    EV_COMMANDER_BUSY,
 54 
 55                 EV_TAPE_ALIGNED_HOME,
 56                 EV_TIntersect_FOUND_HOME
 57 
 58              } Event_t;
 59 
 60 #endif /*SMEvents_H */