summaryrefslogtreecommitdiff
path: root/host/inter/inter.py
diff options
context:
space:
mode:
Diffstat (limited to 'host/inter/inter.py')
-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):