summaryrefslogtreecommitdiffhomepage
path: root/digital/io/src/move_cb.c
diff options
context:
space:
mode:
authorJérémy Dufour2009-05-18 22:29:25 +0200
committerJérémy Dufour2009-05-18 22:29:25 +0200
commitf416af1eeed92e9508744544e39983af82479965 (patch)
treedd9f3ff7639cb2e6dfdd64947e10335aaf11ef4a /digital/io/src/move_cb.c
parent4cdc74b87719195c82d6e2b2026edf5887c6b0e3 (diff)
* 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.
Diffstat (limited to 'digital/io/src/move_cb.c')
-rw-r--r--digital/io/src/move_cb.c4
1 files changed, 2 insertions, 2 deletions
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);
}