summaryrefslogtreecommitdiff
path: root/host/inter
diff options
context:
space:
mode:
authorNicolas Schodet2008-04-04 13:04:11 +0200
committerNicolas Schodet2008-04-04 13:04:11 +0200
commit0fdc7290194b2aa8b1799a61eac2a5b0b38e6fd7 (patch)
tree8e8e6350d5f8901332229fe31df129e677f0cb4e /host/inter
parent5f18e0647d7a282a30850c4690b4292f1f7b2540 (diff)
* host/inter:
- shortened servo arms.
Diffstat (limited to 'host/inter')
-rw-r--r--host/inter/inter.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/host/inter/inter.py b/host/inter/inter.py
index e87e05c3..09c6ca99 100644
--- a/host/inter/inter.py
+++ b/host/inter/inter.py
@@ -162,8 +162,8 @@ class Servo:
d.draw_arc (self.coord, self.l, start = self.start,
extent = self.extent, style = 'arc', outline = '#808080')
a = self.start + self.pos * self.extent
- d.draw_line (self.coord, (self.coord[0] + cos (a),
- self.coord[1] + sin (a)))
+ d.draw_line (self.coord, (self.coord[0] + self.l * cos (a),
+ self.coord[1] + self.l * sin (a)))
class Rear (Drawable):
@@ -172,12 +172,12 @@ class Rear (Drawable):
def __init__ (self, onto):
Drawable.__init__ (self, onto)
self.traps = [
- Servo ((-2.5, -1), 1, 0, pi/2),
- Servo ((-1.5, -0.9), 1, 0, pi/2),
- Servo ((-0.5, -0.8), 1, 0, pi/2),
- Servo ((0.5, -0.8), 1, pi, -pi/2),
- Servo ((1.5, -0.9), 1, pi, -pi/2),
- Servo ((-2.5, 1.3), 1, -pi/6, pi/3),
+ Servo ((-2.5, -1), 0.8, 0, pi/2),
+ Servo ((-1.5, -0.9), 0.8, 0, pi/2),
+ Servo ((-0.5, -0.8), 0.8, 0, pi/2),
+ Servo ((0.5, -0.8), 0.8, pi, -pi/2),
+ Servo ((1.5, -0.9), 0.8, pi, -pi/2),
+ Servo ((-2.5, 1.3), 0.8, -pi/6, pi/3),
]
def draw (self):