mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-08 23:46:25 -06:00
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 <kevin@koconnor.net>
This commit is contained in:
parent
20b404ecf5
commit
0216201cb6
8 changed files with 12 additions and 12 deletions
|
@ -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 }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue