aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/delta_calibrate.py
diff options
context:
space:
mode:
authorArksine <arksine.code@gmail.com>2018-08-18 12:25:57 -0400
committerKevinOConnor <kevin@koconnor.net>2018-08-19 16:52:23 -0400
commit3387cccdcfe953e5733df61187b8f5731b38c1e0 (patch)
tree3aa1a55e38acc9550cae89488b65f585699dfa2e /klippy/extras/delta_calibrate.py
parent52df40dfbb5596c3190ba4a5cd79fd3af87a71b3 (diff)
downloadkutter-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/delta_calibrate.py')
-rw-r--r--klippy/extras/delta_calibrate.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/klippy/extras/delta_calibrate.py b/klippy/extras/delta_calibrate.py
index 3437a6d8..99b59490 100644
--- a/klippy/extras/delta_calibrate.py
+++ b/klippy/extras/delta_calibrate.py
@@ -33,7 +33,8 @@ class DeltaCalibrate:
def get_probed_position(self):
kin = self.printer.lookup_object('toolhead').get_kinematics()
return kin.get_stable_position()
- def finalize(self, z_offset, positions):
+ def finalize(self, offsets, positions):
+ z_offset = offsets[2]
kin = self.printer.lookup_object('toolhead').get_kinematics()
logging.info("Calculating delta_calibrate with: %s", positions)
params = kin.get_calibrate_params()