[klipper] Automatic Bed Leveling

  • From: "Nick von Bulow" <nick@xxxxxxxxxxxxx>
  • To: <klipper@xxxxxxxxxxxxx>
  • Date: Sat, 30 Dec 2017 19:00:26 -0500

Hi there! Great work on the firmware so far! I've tried it out on my
Printrbot with a Rev F board, and it was very simple to configure with a
schematic of the board!

A feature that I find very useful in other firmwares such as Marlin is bed
tilt compensation. In case you're not familiar, after the axes are homed
(which is G28), the probe goes around in a grid pattern and stores a mesh of
the uneven bed. After that, every single XY position can have a relative
Z-height interpolated from the grid using a bilinear algorithm.

I am prepared to implement this algorithm into Klipper, and I'd like your
input on the best way to go about it. I would need to store the 2D array of
grid points somewhere, and I would need to be able to probe (potentially
negative) relative Z-heights without throwing an error (I know that checks
are made to make sure everything in in-bounds, and negative relative
Z-heights could trigger an error).

Let me know what you think!

Nick von Bulow



Other related posts: