summaryrefslogtreecommitdiffhomepage
path: root/host/simu/robots/apbirthday/view
diff options
context:
space:
mode:
authorNicolas Schodet2013-05-08 17:28:39 +0200
committerNicolas Schodet2013-05-08 17:28:39 +0200
commit8cd2723055b6daefb17c63eda10fef42da93879d (patch)
treedfcbe30cbb832f167222fcc4ff515fffe1c25eb5 /host/simu/robots/apbirthday/view
parent83cae036d0f23c1c8ef54ef8ded67a130a235f72 (diff)
host/simu/robots/apbirthday: simulate plate arm offset
Diffstat (limited to 'host/simu/robots/apbirthday/view')
-rw-r--r--host/simu/robots/apbirthday/view/robot.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/host/simu/robots/apbirthday/view/robot.py b/host/simu/robots/apbirthday/view/robot.py
index 788ab952..96139b9b 100644
--- a/host/simu/robots/apbirthday/view/robot.py
+++ b/host/simu/robots/apbirthday/view/robot.py
@@ -65,16 +65,16 @@ class Robot (simu.inter.drawable.Drawable):
plate = self.cannon_model.plate
f = self.cannon_model.arm_cyl.pos
if plate is not None:
- self.draw_rectangle ((-back - f * 170, 85), (-back, -85),
- fill = PINK)
- self.draw_rectangle ((-back - f * 148, 85 - 22),
- (-back - f * 22, -85 + 22), fill = PINK)
+ self.draw_rectangle ((-back - f * 170, 85 - 35),
+ (-back, -85 - 35), fill = PINK)
+ self.draw_rectangle ((-back - f * 148, 85 - 22 - 35),
+ (-back - f * 22, -85 + 22 - 35), fill = PINK)
for c in plate.cherries:
if c.pos:
self.draw_circle ((-back - f * (c.pos[0] + 85),
- c.pos[1]), c.radius, fill = colors[c.color])
- self.draw_rectangle ((-back - f * 170, 85),
- (-back - f * 170 - (1 - f) * 22, -85), fill = PINK)
+ c.pos[1] - 35), c.radius, fill = colors[c.color])
+ self.draw_rectangle ((-back - f * 170, 85 - 35),
+ (-back - f * 170 - (1 - f) * 22, -85 - 35), fill = PINK)
# Draw robot body.
self.draw_polygon ((front, side), (front, -side), (-back, -side),
(-back, 81), (-50, side), fill = COLOR_ROBOT)