storing abc axis origin
This commit is contained in:
@@ -245,7 +245,7 @@ class State(object):
|
|||||||
|
|
||||||
# Loading origin from config after homing
|
# Loading origin from config after homing
|
||||||
if load_position and self.vars.get('cycle') == 'idle':
|
if load_position and self.vars.get('cycle') == 'idle':
|
||||||
for axis in 'xyz':
|
for axis in 'xyzabc':
|
||||||
offset = self.ctrl.config.get('offset_' + axis)
|
offset = self.ctrl.config.get('offset_' + axis)
|
||||||
if offset is not None and self.get('offset_'+ axis) == 0:
|
if offset is not None and self.get('offset_'+ axis) == 0:
|
||||||
origin = offset if self.get('metric') == True else offset / 25.4
|
origin = offset if self.get('metric') == True else offset / 25.4
|
||||||
|
|||||||
@@ -711,6 +711,18 @@
|
|||||||
"offset_z": {
|
"offset_z": {
|
||||||
"type": "float",
|
"type": "float",
|
||||||
"default": 0
|
"default": 0
|
||||||
|
},
|
||||||
|
"offset_a": {
|
||||||
|
"type": "float",
|
||||||
|
"default": 0
|
||||||
|
},
|
||||||
|
"offset_b": {
|
||||||
|
"type": "float",
|
||||||
|
"default": 0
|
||||||
|
},
|
||||||
|
"offset_c": {
|
||||||
|
"type": "float",
|
||||||
|
"default": 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user