From 0216201cb6b9b486a75e446ca1cb2bbd18f329d7 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Fri, 22 Jun 2018 12:27:37 -0400 Subject: delta: Rename get_position() to calc_position() Calculating the cartesian position from the stepper positions can be complex and cpu intensive, so rename it to calc_position() to be more descriptive. Signed-off-by: Kevin O'Connor --- klippy/extras/z_tilt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'klippy/extras/z_tilt.py') diff --git a/klippy/extras/z_tilt.py b/klippy/extras/z_tilt.py index df0a363e..df630241 100644 --- a/klippy/extras/z_tilt.py +++ b/klippy/extras/z_tilt.py @@ -46,7 +46,7 @@ class ZTilt: self.probe_helper.start_probe() def get_position(self): kin = self.printer.lookup_object('toolhead').get_kinematics() - return kin.get_position() + return kin.calc_position() def finalize(self, z_offset, positions): logging.info("Calculating bed tilt with: %s", positions) params = { 'x_adjust': 0., 'y_adjust': 0., 'z_adjust': z_offset } -- cgit v1.2.3-70-g09d2