mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-11 16:57:55 -06:00
homing: Direct stepper phase detection from kinematic classes
Change the scheduling of the final homed position (which takes into account the stepper phases) so that it is scheduled from the kinematic classes instead of from the toolhead class. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
781cf608d7
commit
2b5b899d35
4 changed files with 17 additions and 16 deletions
|
@ -261,13 +261,6 @@ class ToolHead:
|
|||
self.move_queue.add_move(move)
|
||||
def home(self, homing_state):
|
||||
self.kin.home(homing_state)
|
||||
def axes_update(homing_state):
|
||||
pos = self.get_position()
|
||||
homepos = self.kin.get_homed_position()
|
||||
for axis in homing_state.get_axes():
|
||||
pos[axis] = homepos[axis]
|
||||
self.set_position(pos)
|
||||
homing_state.plan_axes_update(axes_update)
|
||||
def dwell(self, delay):
|
||||
self.get_last_move_time()
|
||||
self.update_move_time(delay)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue