mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-08-05 04:54:11 -06:00
mcu: Change mcu_stepper.set_position() to take a location in millimeters
Update the set_position() method to convert from millimeters to absolute step position. Also, update PrinterStepper.get_homed_offset() and mcu_stepper.get_commanded_position() to return millimeters. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
79f31238b0
commit
e4153a536f
5 changed files with 16 additions and 21 deletions
|
@ -99,4 +99,4 @@ class PrinterStepper:
|
|||
raise homing.EndstopError(
|
||||
"Endstop %s incorrect phase (got %d vs %d)" % (
|
||||
self.name, pos, self.homing_endstop_phase))
|
||||
return delta
|
||||
return delta * self.step_dist
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue