summaryrefslogtreecommitdiffhomepage
path: root/digital/io/src/top.h
diff options
context:
space:
mode:
authorNélio Laranjeiro2008-04-10 13:51:28 +0200
committerNélio Laranjeiro2008-04-10 13:51:28 +0200
commit370fa5662360eaa582bed9d55e092b627aef8920 (patch)
tree6221fb25269ddcbffbcb994ec13a2a84a6f3a4cb /digital/io/src/top.h
parentd117245f36bb255a3d8badc0fe75495e69d81f1d (diff)
Start to fill the FSMs. (not finished).
Diffstat (limited to 'digital/io/src/top.h')
-rw-r--r--digital/io/src/top.h27
1 files changed, 26 insertions, 1 deletions
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 */