From 370fa5662360eaa582bed9d55e092b627aef8920 Mon Sep 17 00:00:00 2001 From: NĂ©lio Laranjeiro Date: Thu, 10 Apr 2008 13:51:28 +0200 Subject: Start to fill the FSMs. (not finished). --- digital/io/src/top.h | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) (limited to 'digital/io/src/top.h') diff --git a/digital/io/src/top.h b/digital/io/src/top.h index 651e13f5..169cf278 100644 --- a/digital/io/src/top.h +++ b/digital/io/src/top.h @@ -25,15 +25,40 @@ * * }}} */ +#define BLUE_DISTRIBUTOR_X 700 +#define BLUE_DISTRIBUTOR_Y 2100 + +#define RED_DISTRIBUTOR_X 2300 +#define RED_DISTRIBUTOR_Y 2100 + +#define ICE_DISTRIBUTOR_LEFT 0 +#define ICE_DISTRIBUTOR_RIGHT 3000 +#define ICE_DISTRIBUTOR_Y 1350 + +enum team_color_e +{ + BLUE_TEAM, + RED_TEAM +}; + struct top_data_t { + /** The sequence to get. + * Each bit corresponds to the slot in the collector (where the balls a + * stored in the robot). + * bit 0 = slot 0 + * bit 1 = slot 1 and so on. + */ uint8_t sequence; + /** The color of the balls the robot shall take. + * RED_TEAM or BLUE_TEAM. */ + uint8_t team_color; }; extern struct top_data_t top_data; /** Start a Top FSM. */ void -top_start (void); +top_start (uint8_t team_color); #endif /* top_h */ -- cgit v1.2.3