summaryrefslogtreecommitdiff
path: root/host/simu/model/table_eurobot2012.py
diff options
context:
space:
mode:
authorNicolas Schodet2012-05-03 00:24:08 +0200
committerNicolas Schodet2012-05-06 11:06:49 +0200
commit155e962088c0e321ae9e7aa8d8904166b3b701f8 (patch)
tree16af3d688adc5aaedd05e31cf9cd112b8284fcef /host/simu/model/table_eurobot2012.py
parent0f23035edeb55c1362feeebae45099f7869bb35b (diff)
host/simu, digital/io-hub/src/guybrush: handle new US sensors positions
Diffstat (limited to 'host/simu/model/table_eurobot2012.py')
-rw-r--r--host/simu/model/table_eurobot2012.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/host/simu/model/table_eurobot2012.py b/host/simu/model/table_eurobot2012.py
index 38960513..36dbf12f 100644
--- a/host/simu/model/table_eurobot2012.py
+++ b/host/simu/model/table_eurobot2012.py
@@ -90,4 +90,9 @@ class Table (simu.model.table.Table):
# Add everything to obstacles.
self.obstacles += self.coins
self.obstacles += self.gold_bars
+ # Add totem as obstacles.
+ for i in (-1, 1):
+ o = RectangularObstacle ((250, 250), 3)
+ o.pos = (1500 + i * 400, 1000)
+ self.obstacles.append (o)