Add position params to NEMA stepper mount
This commit is contained in:
parent
0e5776451f
commit
1ddf90d077
3
boxes.py
3
boxes.py
|
@ -647,7 +647,7 @@ class Boxes:
|
||||||
self.edge(d)
|
self.edge(d)
|
||||||
|
|
||||||
@restore
|
@restore
|
||||||
def NEMA(self, size):
|
def NEMA(self, size, x=0, y=0, angle=0):
|
||||||
nema = {
|
nema = {
|
||||||
# motor,flange, holes, screws
|
# motor,flange, holes, screws
|
||||||
8 : (20.3, 16, 15.4, 3),
|
8 : (20.3, 16, 15.4, 3),
|
||||||
|
@ -661,6 +661,7 @@ class Boxes:
|
||||||
42 : (110, 55.5, 89, 8.5),
|
42 : (110, 55.5, 89, 8.5),
|
||||||
}
|
}
|
||||||
width, flange, holedistance, diameter = nema[size]
|
width, flange, holedistance, diameter = nema[size]
|
||||||
|
self.moveTo(x, y, angle)
|
||||||
self.rectangularHole(0, 0, width, width)
|
self.rectangularHole(0, 0, width, width)
|
||||||
self.hole(0,0, 0.5*flange)
|
self.hole(0,0, 0.5*flange)
|
||||||
for x in (-1, 1):
|
for x in (-1, 1):
|
||||||
|
|
Loading…
Reference in New Issue