markniu / Bed_Distance_sensor

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

Add support for DK (Danger Klipper) #167

Open thbl opened 4 months ago

thbl commented 4 months ago

When i try to run QGL on DangerKlipper it throws this error

Internal error on command:"_QUAD_GANTRY_LEVEL" Traceback (most recent call last): File "/home/pi/klipper/klippy/gcode.py", line 298, in _process_commands handler(gcmd) File "/home/pi/klipper/klippy/gcode.py", line 207, in func return origfunc(self._get_extended_params(params)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/pi/klipper/klippy/gcode.py", line 207, in func return origfunc(self._get_extended_params(params)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/pi/klipper/klippy/extras/quad_gantry_level.py", line 63, in cmd_QUAD_GANTRY_LEVEL self.probe_helper.start_probe(gcmd) File "/home/pi/klipper/klippy/extras/probe.py", line 568, in start_probe done = self._move_next() ^^^^^^^^^^^^^^^^^ File "/home/pi/klipper/klippy/extras/probe.py", line 533, in _move_next res = self.finalize_callback(self.probe_offsets, self.results) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/pi/klipper/klippy/extras/quad_gantry_level.py", line 68, in probe_finalize z_positions = [self.horizontal_move_z - p[2] for p in positions] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/pi/klipper/klippy/extras/quad_gantry_level.py", line 68, in <listcomp> z_positions = [self.horizontal_move_z - p[2] for p in positions] ~^^^ TypeError: 'NoneType' object is not subscriptable Transition to shutdown state: Internal error on command:"_QUAD_GANTRY_LEVEL