diff options
author | Arne Jansen <arne@die-jansens.de> | 2019-03-10 13:42:38 +0000 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2019-03-10 12:00:35 -0400 |
commit | f1454392678a3e3fe364d74fd83d1b2698acfe26 (patch) | |
tree | 0a5b54b393dac04755ea5633719de4dfa2e2e441 /klippy/extras | |
parent | 34d32c782322e18842df6dab308490fd35a1f1f1 (diff) | |
download | kutter-f1454392678a3e3fe364d74fd83d1b2698acfe26.tar.gz kutter-f1454392678a3e3fe364d74fd83d1b2698acfe26.tar.xz kutter-f1454392678a3e3fe364d74fd83d1b2698acfe26.zip |
z_tilt: bugfix for final correction of z-offset
The z_adjust offset provided to adjust_steppers is calculated given the
steppers adjust exactly according to the given x_adjust/y_adjust. As the
algorithm eliminates an offset that is common to all steppers, this offset
must be taken into account in the final correction.
Signed-off-by: Arne Jansen <arne@die-jansens.de>
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras')
-rw-r--r-- | klippy/extras/z_tilt.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/extras/z_tilt.py b/klippy/extras/z_tilt.py index bcbfddd9..d679d398 100644 --- a/klippy/extras/z_tilt.py +++ b/klippy/extras/z_tilt.py @@ -99,7 +99,7 @@ class ZTilt: # Z should now be level - do final cleanup last_stepper_offset, last_stepper = positions[-1] last_stepper.set_ignore_move(False) - curpos[2] -= z_adjust + curpos[2] -= z_adjust - first_stepper_offset toolhead.set_position(curpos) self.gcode.reset_last_position() |