OttoBot: Move to Misc UI Group
Set default leg legth to 34mm
This commit is contained in:
parent
e26991695a
commit
946d040bac
|
@ -20,7 +20,7 @@ from boxes import *
|
||||||
class OttoBody(Boxes):
|
class OttoBody(Boxes):
|
||||||
"""Otto LC - a laser cut chassis for Otto DIY - body"""
|
"""Otto LC - a laser cut chassis for Otto DIY - body"""
|
||||||
|
|
||||||
ui_group = "Unstable"
|
ui_group = "Misc"
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
Boxes.__init__(self)
|
Boxes.__init__(self)
|
||||||
|
|
|
@ -27,7 +27,7 @@ class LegEdge(edges.BaseEdge):
|
||||||
class OttoLegs(Boxes):
|
class OttoLegs(Boxes):
|
||||||
"""Otto LC - a laser cut chassis for Otto DIY - legs"""
|
"""Otto LC - a laser cut chassis for Otto DIY - legs"""
|
||||||
|
|
||||||
ui_group = "Unstable"
|
ui_group = "Misc"
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
Boxes.__init__(self)
|
Boxes.__init__(self)
|
||||||
|
@ -41,8 +41,8 @@ class OttoLegs(Boxes):
|
||||||
"--anklebolt2", action="store", type=float, default=2.6,
|
"--anklebolt2", action="store", type=float, default=2.6,
|
||||||
help="diameter for hole for ankle bolts - leg side")
|
help="diameter for hole for ankle bolts - leg side")
|
||||||
self.argparser.add_argument(
|
self.argparser.add_argument(
|
||||||
"--length", action="store", type=float, default=37.0,
|
"--length", action="store", type=float, default=34.0,
|
||||||
help="length of feet (34mm min)")
|
help="length of legs (34mm min)")
|
||||||
|
|
||||||
def foot(self, x, y, ly, l, r=5., move=None):
|
def foot(self, x, y, ly, l, r=5., move=None):
|
||||||
if self.move(x, y, move, True):
|
if self.move(x, y, move, True):
|
||||||
|
|
Loading…
Reference in New Issue