summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Schodet2011-06-03 08:48:52 +0200
committerNicolas Schodet2011-06-03 08:48:52 +0200
commit7f3014a642702c61a5c2e619a8c2f9d7ca7ec3bb (patch)
tree52f79df5077ca20773b786dbcbc4e7dfd5fa0f69
parent09193b811d682c035fca4a15caf0728c1d36a9c1 (diff)
digital/io-hub: make the little step back after clamp is closedeurobot-2011-2
-rw-r--r--digital/io-hub/src/robospierre/clamp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/digital/io-hub/src/robospierre/clamp.c b/digital/io-hub/src/robospierre/clamp.c
index 50afda1e..0c6573d7 100644
--- a/digital/io-hub/src/robospierre/clamp.c
+++ b/digital/io-hub/src/robospierre/clamp.c
@@ -616,7 +616,6 @@ FSM_TRANS_TIMEOUT (CLAMP_TAKING_DOOR_CLOSING, BOT_PWM_DOOR_CLOSE_TIME,
clamp_locked, CLAMP_LOCKED,
done, CLAMP_IDLE)
{
- fsm_queue_post_event (FSM_EVENT (AI, clamp_taken));
logistic_element_new (ctx.pos_new, ctx.new_element_type);
if (logistic_global.moving_from != CLAMP_SLOT_NB)
{
@@ -871,6 +870,7 @@ FSM_TRANS_TIMEOUT (CLAMP_MOVE_SRC_CLAMP_CLOSING, BOT_PWM_CLAMP_CLOSE_TIME,
open_door, CLAMP_MOVE_SRC_DOOR_OPENDING,
move, CLAMP_MOVE_DST_ROUTING)
{
+ fsm_queue_post_event (FSM_EVENT (AI, clamp_taken));
if (clamp_slot_door[ctx.pos_current] != 0xff)
{
pwm_set_timed (clamp_slot_door[ctx.pos_current],