gcode: Convert get_status() homing_xpos to use a namedtuple
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
39261d884d
commit
c0daf43d2f
|
@ -118,7 +118,7 @@ gcode:
|
||||||
[menu __main __tune __offsetz]
|
[menu __main __tune __offsetz]
|
||||||
type: input
|
type: input
|
||||||
name: Offset Z:{'%05.3f' % menu.input}
|
name: Offset Z:{'%05.3f' % menu.input}
|
||||||
input: {printer.gcode.homing_zpos}
|
input: {printer.gcode.homing_origin.z}
|
||||||
input_min: -5
|
input_min: -5
|
||||||
input_max: 5
|
input_max: 5
|
||||||
input_step: 0.005
|
input_step: 0.005
|
||||||
|
|
|
@ -191,9 +191,7 @@ class GCodeParser:
|
||||||
'base_ypos': self.base_position[1],
|
'base_ypos': self.base_position[1],
|
||||||
'base_zpos': self.base_position[2],
|
'base_zpos': self.base_position[2],
|
||||||
'base_epos': self.base_position[3],
|
'base_epos': self.base_position[3],
|
||||||
'homing_xpos': self.homing_position[0],
|
'homing_origin': homing.Coord(*self.homing_position),
|
||||||
'homing_ypos': self.homing_position[1],
|
|
||||||
'homing_zpos': self.homing_position[2],
|
|
||||||
'gcode_position': homing.Coord(*move_position),
|
'gcode_position': homing.Coord(*move_position),
|
||||||
}
|
}
|
||||||
def dump_state(self):
|
def dump_state(self):
|
||||||
|
|
Loading…
Reference in New Issue