From 0fdc7290194b2aa8b1799a61eac2a5b0b38e6fd7 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Fri, 4 Apr 2008 13:04:11 +0200 Subject: * host/inter: - shortened servo arms. --- host/inter/inter.py | 16 ++++++++-------- 1 file 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): -- cgit v1.2.3