dot-bob / Marlin-Duplicator-6

Marlin firmware for the Duplicator 6
GNU General Public License v3.0
65 stars 33 forks source link

Probe position for linear bed leveling #10

Open Grueslayer opened 5 years ago

Grueslayer commented 5 years ago

Hi,

I don't think the calculation for probe position ist correct.

Let's assume that the probe is 35mm right from the extruder and you've defined MIN_PROBE_EDGE = 30 (as in your default config), than you'll get an assert while compiling with AUTO_BED_LEVELING_LINEAR enabled.

You simply can do this by defining (should be tweaked for Y also)

#define MIN_PROBE_EDGE max(30,X_PROBE_OFFSET_FROM_EXTRUDER)

or correcting the xxx_PROBE_BED_POSITION for each dimension in the right way.

P.S. 35mm is the default value for a D6 bed leveling solution from https://www.thingiverse.com/thing:2081168