bed_mesh: Extend BED_MESH_MAP to provide more information

Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Arksine 2018-09-22 11:03:39 -04:00 committed by KevinOConnor
parent 5c267e4f69
commit 144868c600
1 changed files with 8 additions and 2 deletions

View File

@ -246,8 +246,14 @@ class BedMeshCalibrate:
self.probed_z_table[y_position][x_position] = \ self.probed_z_table[y_position][x_position] = \
positions[i][2] - z_offset positions[i][2] - z_offset
if self.build_map: if self.build_map:
outdict = {'z_probe_offsets:': self.probed_z_table} params = self.probe_params
self.gcode.respond(json.dumps(outdict)) outdict = {
'min_point': (params['min_x'], params['min_y']),
'max_point': (params['max_x'], params['max_y']),
'xy_offset': offsets[:2],
'z_positions': self.probed_z_table}
self.gcode.respond(
"mesh_map_output " + json.dumps(outdict))
else: else:
mesh = ZMesh(self.probe_params) mesh = ZMesh(self.probe_params)
try: try: