summaryrefslogtreecommitdiff
path: root/digital/io/src/top.c
diff options
context:
space:
mode:
authorJérémy Dufour2008-04-21 23:56:26 +0200
committerJérémy Dufour2008-04-21 23:56:26 +0200
commit94f06205a8a95bc9b03109329d84410967ba12b4 (patch)
tree86a1ca17c097b3504b0a6c7fcba516725fb31661 /digital/io/src/top.c
parentb814bc2ab370832431d3fa659521949482aa2180 (diff)
* digital/io/src
- resetting of asserv parameters is now a separate state in order to get the acknowledge from the asserv board ; - integrate the handle of this event into the main loop.
Diffstat (limited to 'digital/io/src/top.c')
-rw-r--r--digital/io/src/top.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/digital/io/src/top.c b/digital/io/src/top.c
index d290efe5..6d8ab268 100644
--- a/digital/io/src/top.c
+++ b/digital/io/src/top.c
@@ -29,6 +29,12 @@
struct top_data_t top_data;
+/**
+ * When we need to tell the main loop we want to be alerted when the last
+ * command sent to the asserv board has been acknowledged.
+ */
+uint8_t top_waiting_for_settings_ack_ = 0;
+
/** Start a main FSM. */
void
top_start (uint8_t color_team)
@@ -45,3 +51,9 @@ top_start (uint8_t color_team)
fsm_handle_event (&top_fsm, TOP_EVENT_start);
}
+/* Do we need to tell the top FSM the settings has been acknowledged? */
+uint8_t
+top_generate_settings_ack_event (void)
+{
+ return top_waiting_for_settings_ack_;
+}