diff options
author | fess <fess@fess.org> | 2019-04-06 07:57:46 +0000 |
---|---|---|
committer | KevinOConnor <kevin@koconnor.net> | 2019-05-01 14:34:10 -0400 |
commit | af78d854acb6dcc83007e2380c51fdeb10f0be91 (patch) | |
tree | 33760492fc9c238de78e151c16c77ea0c66c2bd4 /klippy/extras/quad_gantry_level.py | |
parent | 2d864489a0ec56f47c0559d21c4aee3b04e19cbf (diff) | |
download | kutter-af78d854acb6dcc83007e2380c51fdeb10f0be91.tar.gz kutter-af78d854acb6dcc83007e2380c51fdeb10f0be91.tar.xz kutter-af78d854acb6dcc83007e2380c51fdeb10f0be91.zip |
quad_gantry_level: More compact info messages
In particular trying to keep the output from a single quad_gantry_level
so that it fits in the octoprint terminal window without the need to
scroll
Signed-off-by: John "Fess" Fessenden <fess@fess.org>
Diffstat (limited to 'klippy/extras/quad_gantry_level.py')
-rw-r--r-- | klippy/extras/quad_gantry_level.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/klippy/extras/quad_gantry_level.py b/klippy/extras/quad_gantry_level.py index b3ca0252..7a85dec3 100644 --- a/klippy/extras/quad_gantry_level.py +++ b/klippy/extras/quad_gantry_level.py @@ -47,7 +47,7 @@ class QuadGantryLevel: # from the perspective of the gantry z_positions = [self.horizontal_move_z - p[2] for p in positions] points_message = "Gantry-relative probe points:\n%s\n" % ( - "\n".join(["z%s = %.6f" % (z_id, z_positions[z_id]) + " ".join(["%s: %.6f" % (z_id, z_positions[z_id]) for z_id in range(len(z_positions))])) self.gcode.respond_info(points_message) p1 = [positions[0][0] + offsets[0],z_positions[0]] @@ -73,9 +73,11 @@ class QuadGantryLevel: z_height[1] = self.plot(af,self.gantry_corners[1][1]) z_height[2] = self.plot(bf,self.gantry_corners[1][1]) z_height[3] = self.plot(bf,self.gantry_corners[0][1]) - self.gcode.respond_info("Actuator Positions:\n z1: %0.6f\n z2: %0.6f\ - \n z3: %0.6f\n z4: %0.6f\n" % ( - z_height[0],z_height[1],z_height[2],z_height[3])) + + ainfo = zip(["z","z1","z2","z3"], z_height[0:4]) + apos = " ".join(["%s: %06f" % (x) for x in ainfo]) + self.gcode.respond_info("Actuator Positions:\n" + apos) + z_ave = sum(z_height) / len(z_height) self.gcode.respond_info("Average: %0.6f" % z_ave) z_adjust = [] |