summaryrefslogtreecommitdiffhomepage
path: root/digital/io/src/top.h
diff options
context:
space:
mode:
authorNicolas Haller2009-05-08 10:13:00 +0200
committerNicolas Haller2009-05-08 10:13:00 +0200
commitc5ce79b4c6c8671e0e6062706695fc05439252f5 (patch)
treea7d48302df0b469db9342ccd1368835f558e72e7 /digital/io/src/top.h
parente5955adc9c33cee7d2fdda723fb02a2af5e612be (diff)
* digital/io/src:
- first test: top FSM order basic move to the bot
Diffstat (limited to 'digital/io/src/top.h')
-rw-r--r--digital/io/src/top.h52
1 files changed, 1 insertions, 51 deletions
diff --git a/digital/io/src/top.h b/digital/io/src/top.h
index 024231ec..3b453dc9 100644
--- a/digital/io/src/top.h
+++ b/digital/io/src/top.h
@@ -3,7 +3,7 @@
/* top.h */
/* io - Input & Output with Artificial Intelligence (ai) support on AVR. {{{
*
- * Copyright (C) 2008 NĂ©lio Laranjeiro
+ * Copyright (C) 2009 Nicolas Haller
*
* APBTeam:
* Web: http://apbteam.org/
@@ -25,54 +25,4 @@
*
* }}} */
-#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 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.
- * 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 boxes already in use. */
- uint8_t boxes_used;
- /** sequence to realize. */
- uint8_t sequence_to_do;
-};
-
-extern struct top_data_t top_data;
-
-/** Start a Top FSM. */
-void
-top_start (void);
-
-/**
- * Do we need to tell the top FSM the settings has been acknowledged?
- * You need to call this function in the main loop to ensure we pass a
- * requested event (settings_acknowledged) to the top FSM.
- * @return
- * - 0 if you do not need to generate the event for the top FSM ;
- * - 1 if you need to generate the event.
- */
-uint8_t
-top_generate_settings_ack_event (void);
-
#endif /* top_h */