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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 0 deletions

View file

@ -52,6 +52,9 @@ class PolarKinematics:
self.limit_z = self.rails[1].get_range()
if 0 in homing_axes and 1 in homing_axes:
self.limit_xy2 = self.rails[0].get_range()[1]**2
def note_z_not_homed(self):
# Helper for Safe Z Home
self.limit_z = (1.0, -1.0)
def _home_axis(self, homing_state, axis, rail):
# Determine movement
position_min, position_max = rail.get_range()