mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-10 08:17:52 -06:00
stepper: Add a get_name() method to PrinterStepper
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
d0590ccb0e
commit
544f8c1e85
3 changed files with 16 additions and 12 deletions
|
@ -599,10 +599,11 @@ class GCodeParser:
|
|||
return
|
||||
kin = self.toolhead.get_kinematics()
|
||||
steppers = kin.get_steppers()
|
||||
mcu_pos = " ".join(["%s:%d" % (s.name, s.mcu_stepper.get_mcu_position())
|
||||
mcu_pos = " ".join(["%s:%d" % (s.get_name(),
|
||||
s.mcu_stepper.get_mcu_position())
|
||||
for s in steppers])
|
||||
stepper_pos = " ".join(
|
||||
["%s:%.6f" % (s.name, s.mcu_stepper.get_commanded_position())
|
||||
["%s:%.6f" % (s.get_name(), s.mcu_stepper.get_commanded_position())
|
||||
for s in steppers])
|
||||
kinematic_pos = " ".join(["%s:%.6f" % (a, v)
|
||||
for a, v in zip("XYZE", kin.get_position())])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue