Stepping down 0.005 mm at a time found no touch even 0.25 mm into the bed
(peak 16): the sensor sets a new baseline by itself while the force looks
steady, and the slow ramp looked steady. A quick press gave about 25 per
0.1 mm. BDP_TOUCH now lowers the nozzle in one drip-mode move (SPEED,
default 0.3 mm/s) while a timer reads the force every few ms and stops the
move at STOP; Z per reading comes from stepper_z's past position, the halt
position is recovered like homing.py does. The threshold needs 3 readings
in a row, and the curve is logged also when no touch was found.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
bd_pressure's endstop output is not wired, so BDP_TOUCH lowers the nozzle
in small steps and reads the force after each one, up to a force limit
(default 80) or 0.4 mm below the start, then lifts back. It reports the
threshold height and the zero-force height from a line fit and logs the
curve to klippy.log. TOUCH_COMPARE heats the nozzle to 150C, homes, and
alternates Beacon's contact probe with BDP_TOUCH at one spot, reporting
mean, spread and range of each and of the difference. Refuses while the
bdp_guard is armed or the sensor is in PA mode.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>