From f416af1eeed92e9508744544e39983af82479965 Mon Sep 17 00:00:00 2001 From: Jérémy Dufour Date: Mon, 18 May 2009 22:29:25 +0200 Subject: * digital/io/src: - fix event sent to the wrong FSM, - start top FSM, - rewrite event generated by move FSM when its finished, - init FSM generates an event when the match start, - init FSM starts the chrono when the match start, - top FSM now uses the event generated by the init FSM to know when the match start and not the jack states. --- digital/io/src/move_cb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'digital/io/src/move_cb.c') diff --git a/digital/io/src/move_cb.c b/digital/io/src/move_cb.c index abf22c74..a5622369 100644 --- a/digital/io/src/move_cb.c +++ b/digital/io/src/move_cb.c @@ -342,7 +342,7 @@ move__MOVING_TO_INTERMEDIATE_POSITION__bot_move_succeed (void) (move_data.final.y == move_data.intermediate.y)) { /* Post an event for the top FSM to tell we have finished */ - main_post_event_for_top_fsm = TOP_EVENT_move_fsm_finished; + main_post_event_for_top_fsm = TOP_EVENT_move_fsm_succeed; return move_next_branch (MOVING_TO_INTERMEDIATE_POSITION, bot_move_succeed, final_position); } else @@ -513,7 +513,7 @@ fsm_branch_t move__MOVING_TO_FINAL_POSITION__bot_move_succeed (void) { /* Post an event for the top FSM to tell we have finished */ - main_post_event_for_top_fsm = TOP_EVENT_move_fsm_finished; + main_post_event_for_top_fsm = TOP_EVENT_move_fsm_succeed; return move_next (MOVING_TO_FINAL_POSITION, bot_move_succeed); } -- cgit v1.2.3