From 6fecb9aa29e9e452e80c483a7d124b10d0ee3f12 Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Sat, 19 Aug 2017 19:31:54 +0200 Subject: [PATCH] OttoBody: Move main switch to outer wall Shorten servo holder so it no longer needs a hole for the switch --- boxes/generators/ottobody.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/boxes/generators/ottobody.py b/boxes/generators/ottobody.py index 4241067..6b353d6 100644 --- a/boxes/generators/ottobody.py +++ b/boxes/generators/ottobody.py @@ -38,7 +38,8 @@ class OttoBody(Boxes): #self.rectangularHole(self.x-20, self.y/2, 4, 30, 1.5) self.rectangularHole(self.x/2, self.y/2, 10, 5, 1.5) - self.rectangularHole(self.x-7, self.y-6.5, 7, 4) + # switch + self.rectangularHole(self.x-7, self.y-2.8, 7, 4) self.moveTo(0, self.y-12) self.hexHolesCircle(12, (1, 2, 'circle')) @@ -51,7 +52,6 @@ class OttoBody(Boxes): self.hole(6, self.y/2-20, 0.9) def rightBottomCB(self): - self.rectangularHole(7, self.y-6.5, 11.6, 5.6) self.hole(8, self.y/2+9, 0.9) self.rectangularHole(8, self.y/2-5.5, 12, 23) @@ -144,7 +144,7 @@ class OttoBody(Boxes): self.PCB_Clamp(y-53.5, 4.5, hl, move="up only") # servo mounts self.rectangularWall(y, 14, callback=[None, self.leftBottomCB], move="up") - self.rectangularWall(y, 14, callback=[None, self.rightBottomCB], move="up") + self.rectangularWall(y-5.6, 14, callback=[None, self.rightBottomCB], move="up") self.close()