diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2021-05-01 00:27:43 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2021-05-29 21:54:34 -0400 |
commit | c0d860487a70a05d44973d53a981e935ce7b3ad0 (patch) | |
tree | d8ab7ec6e982882fe6de467c949773d8993908d1 /klippy/extras/delta_calibrate.py | |
parent | 77bc5e438851c8a8a8f160fd112e43f460a54241 (diff) | |
download | kutter-c0d860487a70a05d44973d53a981e935ce7b3ad0.tar.gz kutter-c0d860487a70a05d44973d53a981e935ce7b3ad0.tar.xz kutter-c0d860487a70a05d44973d53a981e935ce7b3ad0.zip |
stepper: Remove set_tag_position() code
Have callers store the stepper positions in a dict.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/delta_calibrate.py')
-rw-r--r-- | klippy/extras/delta_calibrate.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/klippy/extras/delta_calibrate.py b/klippy/extras/delta_calibrate.py index a2e0d361..4301c89a 100644 --- a/klippy/extras/delta_calibrate.py +++ b/klippy/extras/delta_calibrate.py @@ -233,9 +233,9 @@ class DeltaCalibrate: toolhead = self.printer.lookup_object('toolhead') toolhead.flush_step_generation() kin = toolhead.get_kinematics() - for s in kin.get_steppers(): - s.set_tag_position(s.get_commanded_position()) - kin_pos = kin.calc_tag_position() + kin_spos = {s.get_name(): s.get_commanded_position() + for s in kin.get_steppers()} + kin_pos = kin.calc_position(kin_spos) # Convert location to a stable position delta_params = kin.get_calibration() stable_pos = tuple(delta_params.calc_stable_position(kin_pos)) |