summaryrefslogtreecommitdiff
path: root/host/simu/robots
diff options
context:
space:
mode:
Diffstat (limited to 'host/simu/robots')
-rw-r--r--host/simu/robots/apbirthday/model/bag.py2
-rw-r--r--host/simu/robots/apbirthday/view/bag.py4
2 files changed, 6 insertions, 0 deletions
diff --git a/host/simu/robots/apbirthday/model/bag.py b/host/simu/robots/apbirthday/model/bag.py
index 768b1f4a..28295e63 100644
--- a/host/simu/robots/apbirthday/model/bag.py
+++ b/host/simu/robots/apbirthday/model/bag.py
@@ -39,6 +39,8 @@ class Bag:
self.color_switch.state = random.choice ((False, True))
self.color_switch.notify ()
self.jack = Switch (link_bag.raw_jack, invert = True)
+ self.strat_switch = Switch (link_bag.ihm_strat, invert = True)
+ self.robot_nb_switch = Switch (link_bag.ihm_robot_nb, invert = True)
self.beacon = RoundObstacle (40, 5)
table.obstacles.append (self.beacon)
self.position = Position (link_bag.asserv.position, [ self.beacon ])
diff --git a/host/simu/robots/apbirthday/view/bag.py b/host/simu/robots/apbirthday/view/bag.py
index 6a9e2d3d..d5c1744d 100644
--- a/host/simu/robots/apbirthday/view/bag.py
+++ b/host/simu/robots/apbirthday/view/bag.py
@@ -34,6 +34,10 @@ class Bag:
self.jack = Switch (sensor_frame, model_bag.jack, 'Jack')
self.color_switch = Switch (sensor_frame, model_bag.color_switch,
'Color')
+ self.strat_switch = Switch (sensor_frame, model_bag.strat_switch,
+ 'Strat')
+ self.robot_nb_switch = Switch (sensor_frame,
+ model_bag.robot_nb_switch, 'Nb robots')
self.robot = Robot (table, model_bag.position, model_bag.cake_arm)
self.distance_sensor = [DistanceSensorUS (self.robot, ds)
for ds in model_bag.distance_sensor]