OttoBody: Move main switch to outer wall

Shorten servo holder so it no longer needs a hole for the switch
This commit is contained in:
Florian Festi 2017-08-19 19:31:54 +02:00
parent 398851255d
commit 6fecb9aa29
1 changed files with 3 additions and 3 deletions

View File

@ -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()