From 3c7512d1619b2e73424790f157aec3926e39e838 Mon Sep 17 00:00:00 2001 From: NĂ©lio Laranjeiro Date: Sat, 12 Apr 2008 02:03:38 +0200 Subject: Update the fsms. --- digital/io/src/top.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'digital/io/src/top.h') 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; -- cgit v1.2.3