markniu / Bed_Distance_sensor

Auto bed level with High resolution distance sensor
281 stars 28 forks source link

Sonic Pad G28 internal error #166

Open madalarcon opened 4 months ago

madalarcon commented 4 months ago

I managed to install BDsensor on sonic pad. i have the file Bdsensor.py in Klipper/klippy/extra folder and I flashed again my printer with the modification. The sensor was recognized I did calibration ok. the probe was working but... y can't home my printer. X home ok Y home ok but z gives me this error [ERROR] 2024-07-18 23:24:29,126 [root] [klippy:invoke_shutdown:351] Transition to shutdown state: {"code":"key60", "msg":"Internal error on command:G28", "values": ["G28"]} [ERROR] 2024-07-18 23:24:29,178 [root] [webhooks:_process_request:262] Internal Error on WebRequest: gcode/script Traceback (most recent call last): File "/usr/share/klipper/klippy/webhooks.py", line 256, in _process_request func(web_request) File "/usr/share/klipper/klippy/webhooks.py", line 425, in _handle_script self.gcode.run_script(web_request.get_str('script')) File "/usr/share/klipper/klippy/gcode.py", line 260, in run_script self._process_commands(script.split('\n'), need_ack=False) File "/usr/share/klipper/klippy/gcode.py", line 210, in _process_commands handler(gcmd) File "/usr/share/klipper/klippy/extras/safe_z_home.py", line 79, in cmd_G28 self.prev_G28(g28_gcmd) File "/usr/share/klipper/klippy/extras/homing.py", line 270, in cmd_G28 kin.home(homing_state) File "/usr/share/klipper/klippy/kinematics/cartesian.py", line 89, in home self._home_axis(homing_state, axis, self.rails[axis]) File "/usr/share/klipper/klippy/kinematics/cartesian.py", line 76, in _home_axis homing_state.home_rails([rail], forcepos, homepos) File "/usr/share/klipper/klippy/extras/homing.py", line 187, in home_rails hmove.homing_move(homepos, hi.speed) File "/usr/share/klipper/klippy/extras/homing.py", line 87, in homing_move triggered=triggered) File "/usr/share/klipper/klippy/extras/BDsensor.py", line 1199, in home_start self.trigger_completion, expire_timeout) TypeError: start() takes 4 positional arguments but 5 were given

I can t update Klipper because it's a sonic pad. im stuck.