From df86960a8825149382e162e04ef37667f0ebdd37 Mon Sep 17 00:00:00 2001 From: Jérémy Dufour Date: Mon, 18 May 2009 13:03:52 +0200 Subject: * 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. --- digital/io/src/main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'digital/io/src/main.c') 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, -- cgit v1.2.3