summaryrefslogtreecommitdiffhomepage
path: root/host/simu
diff options
context:
space:
mode:
authorNicolas Schodet2011-06-03 05:22:43 +0200
committerNicolas Schodet2011-06-03 06:03:49 +0200
commitf9f6fbde971e8a7d4698e197b09a0ea2dd8a8526 (patch)
treecca777921869a52d512a275f0442e542ab04900e /host/simu
parent50408adbb1ecf0e1a73a3339d053a346bc2cba24 (diff)
host/simu/robots/robospierre: fix level 2 drop
Diffstat (limited to 'host/simu')
-rw-r--r--host/simu/robots/robospierre/model/clamp.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/host/simu/robots/robospierre/model/clamp.py b/host/simu/robots/robospierre/model/clamp.py
index c199259e..d32edf25 100644
--- a/host/simu/robots/robospierre/model/clamp.py
+++ b/host/simu/robots/robospierre/model/clamp.py
@@ -193,6 +193,9 @@ class Clamp (Observable):
and slots[2].pawn and slots[2].door_motor.angle:
slots[0].pawn.tower.append (slots[2].pawn)
slots[2].pawn = None
+ if slots[0].pawn is None and slots[1].pawn is None \
+ and slots[2].pawn and slots[2].door_motor.angle:
+ slots[0].pawn, slots[2].pawn = slots[2].pawn, None
def update_contacts (self):
"""Update pawn contacts."""