Prusa3d Marlin fork
mesh_bed_leveling.h
1 #include "Marlin.h"
2 #include "mesh_bed_calibration.h"
3 
4 #ifdef MESH_BED_LEVELING
5 
7 public:
8  uint8_t active;
9  float z_values[MESH_NUM_Y_POINTS][MESH_NUM_X_POINTS];
10 
11  mesh_bed_leveling() { reset(); }
12 
13  void reset();
14 
15  static float get_x(int i) { return BED_X(i) + X_PROBE_OFFSET_FROM_EXTRUDER; }
16  static float get_y(int i) { return BED_Y(i) + Y_PROBE_OFFSET_FROM_EXTRUDER; }
17  float get_z(float x, float y);
18  void set_z(uint8_t ix, uint8_t iy, float z) { z_values[iy][ix] = z; }
19  void upsample_3x3();
20  void print();
21 };
22 
23 extern mesh_bed_leveling mbl;
24 
25 #endif // MESH_BED_LEVELING
Definition: mesh_bed_leveling.h:6