probe: Rename get_position() callback to get_probed_position()
The different uses of get_position() can be confusing, so choose a different name for the ProbePointsHelper callback. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
3e88ffabf1
commit
d9a32f75fa
|
@ -48,7 +48,7 @@ class BedTiltCalibrate:
|
|||
def cmd_BED_TILT_CALIBRATE(self, params):
|
||||
self.gcode.run_script("G28")
|
||||
self.probe_helper.start_probe()
|
||||
def get_position(self):
|
||||
def get_probed_position(self):
|
||||
kin = self.printer.lookup_object('toolhead').get_kinematics()
|
||||
return kin.calc_position()
|
||||
def finalize(self, z_offset, positions):
|
||||
|
|
|
@ -30,7 +30,7 @@ class DeltaCalibrate:
|
|||
def cmd_DELTA_CALIBRATE(self, params):
|
||||
self.gcode.run_script("G28")
|
||||
self.probe_helper.start_probe()
|
||||
def get_position(self):
|
||||
def get_probed_position(self):
|
||||
kin = self.printer.lookup_object('toolhead').get_kinematics()
|
||||
return kin.get_stable_position()
|
||||
def finalize(self, z_offset, positions):
|
||||
|
|
|
@ -207,7 +207,7 @@ class ProbePointsHelper:
|
|||
def cmd_NEXT(self, params):
|
||||
# Record current position
|
||||
self.toolhead.wait_moves()
|
||||
self.results.append(self.callback.get_position())
|
||||
self.results.append(self.callback.get_probed_position())
|
||||
# Lift toolhead
|
||||
curpos = self.toolhead.get_position()
|
||||
curpos[2] = self.horizontal_move_z
|
||||
|
|
|
@ -44,7 +44,7 @@ class ZTilt:
|
|||
cmd_Z_TILT_ADJUST_help = "Adjust the Z tilt"
|
||||
def cmd_Z_TILT_ADJUST(self, params):
|
||||
self.probe_helper.start_probe()
|
||||
def get_position(self):
|
||||
def get_probed_position(self):
|
||||
kin = self.printer.lookup_object('toolhead').get_kinematics()
|
||||
return kin.calc_position()
|
||||
def finalize(self, z_offset, positions):
|
||||
|
|
Loading…
Reference in New Issue