homing: Move homing offset adjustment logic to generic homing code

Move the "stepper phase" adjustment logic from the kinematic classes
to the generic homing.py code.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2018-10-09 12:53:01 -04:00
parent 770b92863f
commit d32506bd2e
4 changed files with 8 additions and 11 deletions

View file

@ -63,10 +63,6 @@ class CoreXYKinematics:
if axis == 2:
limit_speed = self.max_z_velocity
homing_state.home_rails([rail], forcepos, homepos, limit_speed)
if axis == 2:
# Support endstop phase detection on Z axis
forcepos[axis] = hi.position_endstop + rail.get_homed_offset()
homing_state.set_homed_position(forcepos)
def motor_off(self, print_time):
self.limits = [(1.0, -1.0)] * 3
for rail in self.rails: