summaryrefslogtreecommitdiffhomepage
path: root/digital/io/src/main.c
diff options
context:
space:
mode:
authorJérémy Dufour2009-05-18 13:03:52 +0200
committerJérémy Dufour2009-05-18 13:03:52 +0200
commitdf86960a8825149382e162e04ef37667f0ebdd37 (patch)
treee69cab4783310a304367624b7f202a014114585e /digital/io/src/main.c
parent776657ebb6dc993bfcb0f3e8de41bb344a0bb9b7 (diff)
* digital/io/src:
- add event for the last command sent to the asserv board has been acquited, - make init FSM finish by returning to IDLE state (and not moving and moving again), - when in position, do a last turn, to face in the right position.
Diffstat (limited to 'digital/io/src/main.c')
-rw-r--r--digital/io/src/main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/digital/io/src/main.c b/digital/io/src/main.c
index fba5b9b3..cabe9734 100644
--- a/digital/io/src/main.c
+++ b/digital/io/src/main.c
@@ -141,8 +141,10 @@ main_event_to_fsm (void)
FSM_HANDLE_TIMEOUT (&elevator_fsm);
FSM_HANDLE_TIMEOUT (&cylinder_fsm);
- /* FIXME: rename and generalise this event. */
- FSM_HANDLE_EVENT (&top_fsm, TOP_EVENT_settings_acknowledged);
+ /* If we have entering this function, last command of the asserv board has
+ * been aquited.
+ * FIXME: other FSM need it? */
+ FSM_HANDLE_EVENT (&init_fsm, INIT_EVENT_asserv_last_cmd_ack);
asserv_status_e
move_status = none,