summaryrefslogtreecommitdiff
path: root/host/simu/robots/guybrush/model/bag.py
diff options
context:
space:
mode:
authorNicolas Schodet2012-03-31 14:24:53 +0200
committerNicolas Schodet2012-04-02 00:51:51 +0200
commitcbb9c4780b3551df44b0a1ca7ae08ca4497f1b02 (patch)
tree133e23038e36394fbf38e42efeafb36696daf240 /host/simu/robots/guybrush/model/bag.py
parent7016e1fe93510c7fc9e3efdd09a9d91b0524a827 (diff)
host/simu/robots/guybrush: simulate lower clamps sensors
Diffstat (limited to 'host/simu/robots/guybrush/model/bag.py')
-rw-r--r--host/simu/robots/guybrush/model/bag.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/host/simu/robots/guybrush/model/bag.py b/host/simu/robots/guybrush/model/bag.py
index 6ff18194..3b6cc857 100644
--- a/host/simu/robots/guybrush/model/bag.py
+++ b/host/simu/robots/guybrush/model/bag.py
@@ -43,7 +43,8 @@ class Bag:
(PneumaticCylinder (None, link_bag.io_hub.output[8],
scheduler, 0., 30., 150., 75., 30.),
PneumaticCylinder (None, link_bag.io_hub.output[9],
- scheduler, 0., 30., 150., 75., 30.)))
+ scheduler, 0., 30., 150., 75., 30.)),
+ [ Switch (c) for c in link_bag.io_hub.contact[3:3+4] ])
self.distance_sensor = [
DistanceSensorSensopart (link_bag.io_hub.adc[0], scheduler, table,
(20, 20), pi * 10 / 180, (self.position, ), 2),