Skip to content

Commit f128999

Browse files
committed
probe_eddy_current: show noise at distinct calibration points
Signed-off-by: Timofey Titovets <[email protected]>
1 parent 901e17f commit f128999

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

klippy/extras/probe_eddy_current.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,18 @@ def post_manual_probe(self, kin_pos):
208208
avg_mad = sum(total_mad)/len(total_mad)
209209
avg_mad_mm = sum(total_mad_mm)/len(total_mad_mm)
210210
gcode.respond_info(
211-
"probe_eddy_current: MAD=%.3fHz ~ %.6fmm in %d queries\n"
211+
"probe_eddy_current: MAD=%.3fHz ~ %.6fmm in %d queries\n" % (
212+
avg_mad, avg_mad_mm, total))
213+
skip = 5
214+
for i in range(skip, len(filtered), (len(filtered) - skip)//5):
215+
pos, _ = filtered[i]
216+
mad = total_mad[i]
217+
mad_mm = total_mad_mm[i]
218+
gcode.respond_info("z_offset: %.3f MAD=%.3fHz ~ %.6fmm\n" % (
219+
pos, mad, mad_mm))
220+
gcode.respond_info(
212221
"The SAVE_CONFIG command will update the printer config file\n"
213-
"and restart the printer." % (avg_mad, avg_mad_mm, total))
222+
"and restart the printer.")
214223
# Save results
215224
cal_contents = []
216225
for i, (pos, freq) in enumerate(filtered):

0 commit comments

Comments
 (0)