summaryrefslogtreecommitdiff
path: root/host/simu/robots/guybrush/model/bag.py
diff options
context:
space:
mode:
Diffstat (limited to 'host/simu/robots/guybrush/model/bag.py')
-rw-r--r--host/simu/robots/guybrush/model/bag.py14
1 files changed, 4 insertions, 10 deletions
diff --git a/host/simu/robots/guybrush/model/bag.py b/host/simu/robots/guybrush/model/bag.py
index f9c98814..a6302f44 100644
--- a/host/simu/robots/guybrush/model/bag.py
+++ b/host/simu/robots/guybrush/model/bag.py
@@ -72,21 +72,15 @@ class Bag:
output[self.OUTPUT_DOOR_OPEN], scheduler,
0., 1., 1., 1., 1., contact[7], contact[6])
)
- def distance_sensor_exclude (o):
- return o is self.beacon
self.distance_sensor = [
DistanceSensorSensopart (link_bag.io_hub.adc[0], scheduler, table,
- (20, 20), pi * 10 / 180, (self.position, ), 5,
- distance_sensor_exclude),
+ (120, 0), 0, (self.position, ), 4),
DistanceSensorSensopart (link_bag.io_hub.adc[1], scheduler, table,
- (20, -20), -pi * 10 / 180, (self.position, ), 5,
- distance_sensor_exclude),
+ (120, 160), 0, (self.position, ), set ([3, 4])),
DistanceSensorSensopart (link_bag.io_hub.adc[2], scheduler, table,
- (-20, -20), pi + pi * 10 / 180, (self.position, ), 5,
- distance_sensor_exclude),
+ (120, -160), 0, (self.position, ), set ([3, 4])),
DistanceSensorSensopart (link_bag.io_hub.adc[3], scheduler, table,
- (-20, 20), pi - pi * 10 / 180, (self.position, ), 5,
- distance_sensor_exclude),
+ (-130, 0), pi, (self.position, ), 4),
]
self.path = link_bag.io_hub.path
self.pos_report = link_bag.io_hub.pos_report