safe_z_home: Support note_z_not_homed() in kinematics (#2500)

Signed-off-by: David Smith <davidosmith@gmail.com>
This commit is contained in:
David Smith
2020-03-01 23:00:41 -05:00
committed by GitHub
parent 7a3cbc1e23
commit c0f72a2c38
4 changed files with 11 additions and 0 deletions

View File

@@ -49,6 +49,9 @@ class CoreXYKinematics:
rail.set_position(newpos)
if i in homing_axes:
self.limits[i] = rail.get_range()
def note_z_not_homed(self):
# Helper for Safe Z Home
self.limits[2] = (1.0, -1.0)
def home(self, homing_state):
# Each axis is homed independently and in order
for axis in homing_state.get_axes():