From 3387cccdcfe953e5733df61187b8f5731b38c1e0 Mon Sep 17 00:00:00 2001 From: Arksine Date: Sat, 18 Aug 2018 12:25:57 -0400 Subject: 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 --- klippy/extras/z_tilt.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'klippy/extras/z_tilt.py') 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): -- cgit v1.2.3-70-g09d2