diff options
author | Hans Raaf <hara@oderwat.de> | 2018-06-13 23:55:58 +0200 |
---|---|---|
committer | KevinOConnor <kevin@koconnor.net> | 2018-06-13 22:34:25 -0400 |
commit | 4ec1244c31af2e621eec9a4bbfa59684c8dbf93f (patch) | |
tree | 48b151ac9bd8ae0c47a89f6418d70b268a9692eb | |
parent | 268e39fe5202f604a244cf92fbcb08602404909a (diff) | |
download | kutter-4ec1244c31af2e621eec9a4bbfa59684c8dbf93f.tar.gz kutter-4ec1244c31af2e621eec9a4bbfa59684c8dbf93f.tar.xz kutter-4ec1244c31af2e621eec9a4bbfa59684c8dbf93f.zip |
Extras: Probing does reply with the z position where the probe triggers.
This change will make the "PROBE" command actually reply with the
z-position where the probe triggers. As this command is called
internally for the BED_TILT_CALIBRATE and Z_TILT_ADJUST those commands
will also give a response while probing, which I see as advantage over
the silent operation.
This change also lets one define some gcode for a repeatable probing
test to meassure the quality of the sensor and overall probing accuracy.
Signed-off-by: Hans Raaf <hr-klipper@oderwat.de>
-rw-r--r-- | klippy/extras/probe.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/klippy/extras/probe.py b/klippy/extras/probe.py index 99e4e80e..9aab1d9d 100644 --- a/klippy/extras/probe.py +++ b/klippy/extras/probe.py @@ -76,6 +76,10 @@ class PrinterProbe: if "Timeout during endstop homing" in reason: reason += HINT_TIMEOUT raise self.gcode.error(reason) + kin = toolhead.get_kinematics() + pos = kin.get_position() + self.gcode.respond_info( + "probe z: %.3f" % (pos[2])) self.gcode.reset_last_position() cmd_QUERY_PROBE_help = "Return the status of the z-probe" def cmd_QUERY_PROBE(self, params): |