aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/bed_mesh.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2018-09-26 19:29:58 -0400
committerKevinOConnor <kevin@koconnor.net>2018-10-01 11:12:30 -0400
commitc5d4e14298525e0a184f42f812041b32dfea6951 (patch)
treeec9dc78e55e4cf862df408ffddb35e37ab19c33e /klippy/extras/bed_mesh.py
parenta9a0bb87fa472c470d5cbd4ffc78e1acb29a04c1 (diff)
downloadkutter-c5d4e14298525e0a184f42f812041b32dfea6951.tar.gz
kutter-c5d4e14298525e0a184f42f812041b32dfea6951.tar.xz
kutter-c5d4e14298525e0a184f42f812041b32dfea6951.zip
probe: Infer position_endstop when using probe:z_virtual_offset
Don't require (or permit) the user to specify a stepper_z position_endstop when using the probe:z_virtual_offset mechanism. In that case the position_endstop should always equal the probe's z_offset - so no need to have the user specify it. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/bed_mesh.py')
-rw-r--r--klippy/extras/bed_mesh.py17
1 files changed, 0 insertions, 17 deletions
diff --git a/klippy/extras/bed_mesh.py b/klippy/extras/bed_mesh.py
index 5a7a622d..c312cc9d 100644
--- a/klippy/extras/bed_mesh.py
+++ b/klippy/extras/bed_mesh.py
@@ -138,11 +138,6 @@ class BedMeshCalibrate:
self._init_probe_params(config, points)
self.probe_helper = probe.ProbePointsHelper(
config, self.probe_finalize, points)
- self.z_endstop_pos = None
- if config.has_section('stepper_z'):
- zconfig = config.getsection('stepper_z')
- self.z_endstop_pos = zconfig.getfloat(
- 'position_endstop', None)
self.gcode = self.printer.lookup_object('gcode')
self.gcode.register_command(
'BED_MESH_CALIBRATE', self.cmd_BED_MESH_CALIBRATE,
@@ -227,18 +222,6 @@ class BedMeshCalibrate:
self.probe_params['x_offset'] = offsets[0]
self.probe_params['y_offset'] = offsets[1]
z_offset = offsets[2]
- if self.probe_helper.get_last_xy_home_positon() is not None \
- and self.z_endstop_pos is not None:
- # Using probe as a virtual endstop, warn user if the
- # stepper_z position_endstop is different
- if self.z_endstop_pos != z_offset:
- z_msg = "bed_mesh: WARN - probe z_offset is not" \
- " equal to Z position_endstop\n"
- z_msg += "[probe] z_offset: %.4f\n" % z_offset
- z_msg += "[stepper_z] position_endstop: %.4f" \
- % self.z_endstop_pos
- logging.info(z_msg)
- self.gcode.respond_info(z_msg)
x_cnt = self.probe_params['x_count']
y_cnt = self.probe_params['y_count']
# create a 2-D array representing the probed z-positions.