diff options
author | Arksine <arksine.code@gmail.com> | 2018-08-18 12:25:57 -0400 |
---|---|---|
committer | KevinOConnor <kevin@koconnor.net> | 2018-08-19 16:52:23 -0400 |
commit | 3387cccdcfe953e5733df61187b8f5731b38c1e0 (patch) | |
tree | 3aa1a55e38acc9550cae89488b65f585699dfa2e /klippy/extras/z_tilt.py | |
parent | 52df40dfbb5596c3190ba4a5cd79fd3af87a71b3 (diff) | |
download | kutter-3387cccdcfe953e5733df61187b8f5731b38c1e0.tar.gz kutter-3387cccdcfe953e5733df61187b8f5731b38c1e0.tar.xz kutter-3387cccdcfe953e5733df61187b8f5731b38c1e0.zip |
bed_mesh: move probe x and y offsets to the [probe] module
All probe offsets are now passed to the finalize() callback in the ProbePointsHelper Class.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
Diffstat (limited to 'klippy/extras/z_tilt.py')
-rw-r--r-- | klippy/extras/z_tilt.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/klippy/extras/z_tilt.py b/klippy/extras/z_tilt.py index b7e36aa9..684bf01f 100644 --- a/klippy/extras/z_tilt.py +++ b/klippy/extras/z_tilt.py @@ -43,7 +43,8 @@ class ZTilt: def get_probed_position(self): kin = self.printer.lookup_object('toolhead').get_kinematics() return kin.calc_position() - def finalize(self, z_offset, positions): + def finalize(self, offsets, positions): + z_offset = offsets[2] logging.info("Calculating bed tilt with: %s", positions) params = { 'x_adjust': 0., 'y_adjust': 0., 'z_adjust': z_offset } def adjusted_height(pos, params): |