Let the bdpressure sensor work as z-probe with BD eddy sensor or other eddy bed leveling sensor.
Test video:
https://youtu.be/xD0XgPfmwlg
https://www.bilibili.com/video/BV1RYcqzEEkr/
add endstop_pin and activate_gcode in the BDsensor section like the follows:
[BDsensor]
sda_pin: MKS_THR:PB8 # example of connecting to main board Creality V4.2.7
scl_pin: MKS_THR:PB9
delay: 10 # you can set it 10 if the BDsensor version is >=1.2
z_offset:-0.05 # within -0.6 to 0.6mm
x_offset: 0
y_offset: 25
no_stop_probe: # fast probe that the toolhead will not stop at the probe point,disable it by commenting out.
position_endstop: 1.5
collision_homing:0
collision_calibrate:0
#QGL_Tilt_Probe:0 # set 1 to enable probe up and down when do quad_gantry_level,default is 1
speed:3 # this speed only works for the z tilt .
homing_cmd: G28
endstop_pin: MKS_THR:PB7 # the probe pin of the bdpressure
activate_gcode:
M400
G4 P500
PA_RESET
modify the Z_TILT_ADJUST as the follows:
[gcode_macro Z_TILT_ADJUST]
rename_existing: _Z_TILT_ADJUST
description:
gcode:
#run z tilt with z move up and down at first
BDSENSOR_SET QGL_TILT_PROBE=1 #set this 1 to enable z axis up and down
BDSENSOR_SET COLLISION_HOMING=0
_Z_TILT_ADJUST horizontal_move_z=6 retry_tolerance=1
G28 Z0
#run z tilt with no z move up and down
BDSENSOR_SET QGL_TILT_PROBE=0 #set this 0 to disable z axis up and down while probe
_Z_TILT_ADJUST horizontal_move_z=1 retry_tolerance=0.04
#BDSENSOR_SET COLLISION_HOMING=1 #optional
G28 Z0