summaryrefslogtreecommitdiffhomepage
path: root/digital/io/src/top.h
diff options
context:
space:
mode:
authorNélio Laranjeiro2008-04-12 02:03:38 +0200
committerNélio Laranjeiro2008-04-12 02:03:38 +0200
commit3c7512d1619b2e73424790f157aec3926e39e838 (patch)
treece237207867f09cc64e262db198a7d307358bd7e /digital/io/src/top.h
parent1dd17a56e081e19dd1f8de9ea2035a6f4d83d1db (diff)
Update the fsms.
Diffstat (limited to 'digital/io/src/top.h')
-rw-r--r--digital/io/src/top.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/digital/io/src/top.h b/digital/io/src/top.h
index 169cf278..aa05c07b 100644
--- a/digital/io/src/top.h
+++ b/digital/io/src/top.h
@@ -41,6 +41,14 @@ enum team_color_e
RED_TEAM
};
+enum sequence_e
+{
+ /* 3 color balls, 2 ice */
+ SEQUCENCE_ONE = 0x15,
+ /* 2 color balls, 3 ice */
+ SEQUENCE_TWO = 0xA
+};
+
struct top_data_t
{
/** The sequence to get.
@@ -50,6 +58,10 @@ struct top_data_t
* bit 1 = slot 1 and so on.
*/
uint8_t sequence;
+ /** The boxes already in use. */
+ uint8_t boxes_used;
+ /** sequence to realize. */
+ uint8_t sequence_to_do;
/** The color of the balls the robot shall take.
* RED_TEAM or BLUE_TEAM. */
uint8_t team_color;