From 203525d84bafff3b1f9fcfff4b0f51bb45c7fa0e Mon Sep 17 00:00:00 2001 From: Jérémy Dufour Date: Mon, 14 Apr 2008 12:04:45 +0200 Subject: * digital/io/src - add notifier for the desired arm position ; - integrate it in the get samples FSM. --- digital/io/src/main.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'digital/io/src/main.c') diff --git a/digital/io/src/main.c b/digital/io/src/main.c index d03714c4..f2bd5355 100644 --- a/digital/io/src/main.c +++ b/digital/io/src/main.c @@ -125,12 +125,13 @@ main_loop (void) } /* TODO: Check if the sensor placed at the noted position has seen * an arm passed and forward this event to the getsamples FSM */ -// if (arm_in_front_of_reached_position) -// { -// /* Reset the sensor back to see a new transit of the arm */ -// fsm_handle_event (&getsamples_fsm, -// GETSAMPLES_EVENT_arm_pass_noted_position); -// } + if (asserv_arm_position_reached ()) + { + /* Reset the notifier */ + asserv_arm_set_position_reached (0); + fsm_handle_event (&getsamples_fsm, + GETSAMPLES_EVENT_arm_pass_noted_position); + } /* Check other sensors */ } } -- cgit v1.2.3