summaryrefslogtreecommitdiff
path: root/digital/io-hub/src/robospierre/top.c
diff options
context:
space:
mode:
authorNicolas Schodet2011-06-04 00:41:24 +0200
committerNicolas Schodet2011-06-04 00:41:24 +0200
commitcff3a91df81737d5f9ce2173375b719ff21d0969 (patch)
tree273fac0060a445c450c387486991ac1c16e8764d /digital/io-hub/src/robospierre/top.c
parenteabb56da8bd0004fb665fc2838e3db62c780e72b (diff)
digital/io-hub: drop the right element type
Diffstat (limited to 'digital/io-hub/src/robospierre/top.c')
-rw-r--r--digital/io-hub/src/robospierre/top.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/digital/io-hub/src/robospierre/top.c b/digital/io-hub/src/robospierre/top.c
index 3313a908..f1f14cdd 100644
--- a/digital/io-hub/src/robospierre/top.c
+++ b/digital/io-hub/src/robospierre/top.c
@@ -405,7 +405,9 @@ FSM_TRANS (TOP_WAITING_READY, clamp_blocked, TOP_UNBLOCKING_SHAKE_WAIT)
FSM_TRANS (TOP_DROP_DROPPING, clamp_drop_waiting, TOP_DROP_CLEARING)
{
if (ctx.target_element_id != 0xff)
- element_down (ctx.target_element_id, ELEMENT_TOWER);
+ element_down (ctx.target_element_id,
+ logistic_drop_element_type
+ (logistic_global.collect_direction));
if (!IO_GET (CONTACT_STRAT))
element_i_like_green ();
asserv_move_linearly (logistic_global.collect_direction