mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-16 19:28:16 -06:00
probe: Support manual probing at runtime
Don't require the config file to specify manual probing. Instead, allow the user to select manual probing on each ProbePointsHelper invocation. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
0e9b8abde2
commit
33887b8c39
10 changed files with 41 additions and 54 deletions
|
@ -204,15 +204,15 @@ class BedMeshCalibrate:
|
|||
cmd_BED_MESH_MAP_help = "Probe the bed and serialize output"
|
||||
def cmd_BED_MESH_MAP(self, params):
|
||||
self.build_map = True
|
||||
self.start_calibration()
|
||||
self.start_calibration(params)
|
||||
cmd_BED_MESH_CALIBRATE_help = "Perform Mesh Bed Leveling"
|
||||
def cmd_BED_MESH_CALIBRATE(self, params):
|
||||
self.build_map = False
|
||||
self.start_calibration()
|
||||
def start_calibration(self):
|
||||
self.start_calibration(params)
|
||||
def start_calibration(self, params):
|
||||
self.bedmesh.set_mesh(None)
|
||||
self.gcode.run_script_from_command("G28")
|
||||
self.probe_helper.start_probe()
|
||||
self.probe_helper.start_probe(params)
|
||||
def print_probed_positions(self, print_func):
|
||||
if self.probed_z_table is not None:
|
||||
msg = "Mesh Leveling Probed Z positions:\n"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue