Add "G29 S4" to fine tune Z level for Mesh Bed Leveling.

Also add mbl.z_offset to the EEPROM, bumping the version to V23.
This commit is contained in:
Edward Patel
2016-03-24 22:16:09 +01:00
committed by Scott Lahteine
parent 122bdd187f
commit c606ed447a
6 changed files with 81 additions and 46 deletions

View File

@@ -30,6 +30,7 @@
class mesh_bed_leveling {
public:
uint8_t active;
float z_offset;
float z_values[MESH_NUM_Y_POINTS][MESH_NUM_X_POINTS];
mesh_bed_leveling();
@@ -70,7 +71,7 @@
float z0 = calc_z0(y0,
get_y(y_index), z1,
get_y(y_index + 1), z2);
return z0;
return z0 + z_offset;
}
};