diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2018-02-16 13:30:49 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2018-02-16 13:30:49 -0500 |
commit | c128a9dfd5fc4aceaf67c4212c5323edb4f34068 (patch) | |
tree | e9cc172bd905a6ced1be090df7efc34e929bc1c0 /klippy/extras/bed_tilt.py | |
parent | 6dc623b35d6c26043477d9bd11779134d231379c (diff) | |
download | kutter-c128a9dfd5fc4aceaf67c4212c5323edb4f34068.tar.gz kutter-c128a9dfd5fc4aceaf67c4212c5323edb4f34068.tar.xz kutter-c128a9dfd5fc4aceaf67c4212c5323edb4f34068.zip |
probe: Increase calibration log level from debug to info
Output more information by default from the bed_tilt and
delta_calibrate commands.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/bed_tilt.py')
-rw-r--r-- | klippy/extras/bed_tilt.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/klippy/extras/bed_tilt.py b/klippy/extras/bed_tilt.py index 316f1124..f7e61052 100644 --- a/klippy/extras/bed_tilt.py +++ b/klippy/extras/bed_tilt.py @@ -59,11 +59,11 @@ class BedTiltCalibrate: kin = self.printer.lookup_object('toolhead').get_kinematics() return kin.get_position() def finalize(self, positions): - logging.debug("Got: %s", positions) + logging.info("Calculating bed_tilt with: %s", positions) params = { 'x_adjust': self.bedtilt.x_adjust, 'y_adjust': self.bedtilt.y_adjust, 'z_adjust': self.probe_z_offset } - logging.debug("Params: %s", params) + logging.info("Initial bed_tilt parameters: %s", params) def adjusted_height(pos, params): x, y, z = pos return (z - x*params['x_adjust'] - y*params['y_adjust'] @@ -74,11 +74,10 @@ class BedTiltCalibrate: total_error += adjusted_height(pos, params)**2 return total_error new_params = probe.coordinate_descent(params.keys(), params, errorfunc) - logging.debug("Got2: %s", new_params) + logging.info("Calculated bed_tilt parameters: %s", new_params) for pos in positions: - logging.debug("orig: %s new: %s", - adjusted_height(pos, params), - adjusted_height(pos, new_params)) + logging.info("orig: %s new: %s", adjusted_height(pos, params), + adjusted_height(pos, new_params)) z_warn = "" z_diff = new_params['z_adjust'] - self.probe_z_offset if abs(z_diff) > .010: |