Prusa MINI Firmware overview
ubl.h
Go to the documentation of this file.
1 /**
2  * Marlin 3D Printer Firmware
3  * Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
4  *
5  * Based on Sprinter and grbl.
6  * Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
7  *
8  * This program is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation, either version 3 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20  *
21  */
22 #pragma once
23 
24 //#define UBL_DEVEL_DEBUGGING
25 
26 #include "../../../module/motion.h"
27 
28 #define DEBUG_OUT ENABLED(DEBUG_LEVELING_FEATURE)
29 #include "../../../core/debug_out.h"
30 
31 #define UBL_VERSION "1.01"
32 #define UBL_OK false
33 #define UBL_ERR true
34 
36 
37 // External references
38 
39 struct mesh_index_pair;
40 
41 #define MESH_X_DIST (float(MESH_MAX_X - (MESH_MIN_X)) / float(GRID_MAX_POINTS_X - 1))
42 #define MESH_Y_DIST (float(MESH_MAX_Y - (MESH_MIN_Y)) / float(GRID_MAX_POINTS_Y - 1))
43 
45  private:
46 
47  static int g29_verbose_level,
48  g29_phase_value,
49  g29_repetition_cnt,
50  g29_storage_slot,
51  g29_map_type;
52  static bool g29_c_flag;
53  static float g29_card_thickness,
54  g29_constant;
55  static xy_pos_t g29_pos;
56  static xy_bool_t xy_seen;
57 
58  #if HAS_BED_PROBE
59  static int g29_grid_size;
60  #endif
61 
62  #if ENABLED(NEWPANEL)
63  static void move_z_with_encoder(const float &multiplier);
64  static float measure_point_with_encoder();
65  static float measure_business_card_thickness(float in_height);
66  static void manually_probe_remaining_mesh(const xy_pos_t&, const float&, const float&, const bool) _O0;
67  static void fine_tune_mesh(const xy_pos_t &pos, const bool do_ubl_mesh_map) _O0;
68  #endif
69 
70  static bool g29_parameter_parsing() _O0;
71  static void shift_mesh_height();
72  static void probe_entire_mesh(const xy_pos_t &near, const bool do_ubl_mesh_map, const bool stow_probe, const bool do_furthest) _O0;
73  static void tilt_mesh_based_on_3pts(const float &z1, const float &z2, const float &z3);
74  static void tilt_mesh_based_on_probed_grid(const bool do_ubl_mesh_map);
75  static bool smart_fill_one(const uint8_t x, const uint8_t y, const int8_t xdir, const int8_t ydir);
76  static inline bool smart_fill_one(const xy_uint8_t &pos, const xy_uint8_t &dir) {
77  return smart_fill_one(pos.x, pos.y, dir.x, dir.y);
78  }
79  static void smart_fill_mesh();
80 
81  #if ENABLED(UBL_DEVEL_DEBUGGING)
82  static void g29_what_command();
83  static void g29_eeprom_dump();
84  static void g29_compare_current_mesh_to_stored_mesh();
85  #endif
86 
87  public:
88 
89  static void echo_name();
90  static void report_current_mesh();
91  static void report_state();
94  static void display_map(const int) _O0;
95  static mesh_index_pair find_closest_mesh_point_of_type(const MeshPointType, const xy_pos_t&, const bool=false, MeshFlags *done_flags=nullptr) _O0;
96  static mesh_index_pair find_furthest_invalid_mesh_point() _O0;
97  static void reset();
98  static void invalidate();
99  static void set_all_mesh_points_to_value(const float value);
100  static void adjust_mesh_to_mean(const bool cflag, const float value);
101  static bool sanity_check();
102 
103  static void G29() _O0; // O0 for no optimization
104  static void smart_fill_wlsf(const float &) _O2; // O2 gives smaller code than Os on A2560
105 
106  static int8_t storage_slot;
107 
108  static bed_mesh_t z_values;
109  static const float _mesh_index_to_xpos[GRID_MAX_POINTS_X],
110  _mesh_index_to_ypos[GRID_MAX_POINTS_Y];
111 
112  #if HAS_LCD_MENU
113  static bool lcd_map_control;
114  #endif
115 
116  static volatile int encoder_diff; // Volatile because it's changed at interrupt time.
117 
119 
120  FORCE_INLINE static void set_z(const int8_t px, const int8_t py, const float &z) { z_values[px][py] = z; }
121 
122  static int8_t cell_index_x(const float &x) {
123  const int8_t cx = (x - (MESH_MIN_X)) * RECIPROCAL(MESH_X_DIST);
124  return constrain(cx, 0, (GRID_MAX_POINTS_X) - 1); // -1 is appropriate if we want all movement to the X_MAX
125  } // position. But with this defined this way, it is possible
126  // to extrapolate off of this point even further out. Probably
127  // that is OK because something else should be keeping that from
128  // happening and should not be worried about at this level.
129  static int8_t cell_index_y(const float &y) {
130  const int8_t cy = (y - (MESH_MIN_Y)) * RECIPROCAL(MESH_Y_DIST);
131  return constrain(cy, 0, (GRID_MAX_POINTS_Y) - 1); // -1 is appropriate if we want all movement to the Y_MAX
132  } // position. But with this defined this way, it is possible
133  // to extrapolate off of this point even further out. Probably
134  // that is OK because something else should be keeping that from
135  // happening and should not be worried about at this level.
136 
137  static inline xy_int8_t cell_indexes(const float &x, const float &y) {
138  return { cell_index_x(x), cell_index_y(y) };
139  }
140  static inline xy_int8_t cell_indexes(const xy_pos_t &xy) { return cell_indexes(xy.x, xy.y); }
141 
142  static int8_t closest_x_index(const float &x) {
143  const int8_t px = (x - (MESH_MIN_X) + (MESH_X_DIST) * 0.5) * RECIPROCAL(MESH_X_DIST);
144  return WITHIN(px, 0, GRID_MAX_POINTS_X - 1) ? px : -1;
145  }
146  static int8_t closest_y_index(const float &y) {
147  const int8_t py = (y - (MESH_MIN_Y) + (MESH_Y_DIST) * 0.5) * RECIPROCAL(MESH_Y_DIST);
148  return WITHIN(py, 0, GRID_MAX_POINTS_Y - 1) ? py : -1;
149  }
150  static inline xy_int8_t closest_indexes(const xy_pos_t &xy) {
151  return { closest_x_index(xy.x), closest_y_index(xy.y) };
152  }
153 
154  /**
155  * z2 --|
156  * z0 | |
157  * | | + (z2-z1)
158  * z1 | | |
159  * ---+-------------+--------+-- --|
160  * a1 a0 a2
161  * |<---delta_a---------->|
162  *
163  * calc_z0 is the basis for all the Mesh Based correction. It is used to
164  * find the expected Z Height at a position between two known Z-Height locations.
165  *
166  * It is fairly expensive with its 4 floating point additions and 2 floating point
167  * multiplications.
168  */
169  FORCE_INLINE static float calc_z0(const float &a0, const float &a1, const float &z1, const float &a2, const float &z2) {
170  return z1 + (z2 - z1) * (a0 - a1) / (a2 - a1);
171  }
172 
173  /**
174  * z_correction_for_x_on_horizontal_mesh_line is an optimization for
175  * the case where the printer is making a vertical line that only crosses horizontal mesh lines.
176  */
177  static inline float z_correction_for_x_on_horizontal_mesh_line(const float &rx0, const int x1_i, const int yi) {
178  if (!WITHIN(x1_i, 0, GRID_MAX_POINTS_X - 1) || !WITHIN(yi, 0, GRID_MAX_POINTS_Y - 1)) {
179 
180  if (DEBUGGING(LEVELING)) {
181  if (WITHIN(x1_i, 0, GRID_MAX_POINTS_X - 1)) DEBUG_ECHOPGM("yi"); else DEBUG_ECHOPGM("x1_i");
182  DEBUG_ECHOLNPAIR(" out of bounds in z_correction_for_x_on_horizontal_mesh_line(rx0=", rx0, ",x1_i=", x1_i, ",yi=", yi, ")");
183  }
184 
185  // The requested location is off the mesh. Return UBL_Z_RAISE_WHEN_OFF_MESH or NAN.
186  return (
187  #ifdef UBL_Z_RAISE_WHEN_OFF_MESH
188  UBL_Z_RAISE_WHEN_OFF_MESH
189  #else
190  NAN
191  #endif
192  );
193  }
194 
195  const float xratio = (rx0 - mesh_index_to_xpos(x1_i)) * RECIPROCAL(MESH_X_DIST),
196  z1 = z_values[x1_i][yi];
197 
198  return z1 + xratio * (z_values[_MIN(x1_i, GRID_MAX_POINTS_X - 2) + 1][yi] - z1); // Don't allow x1_i+1 to be past the end of the array
199  // If it is, it is clamped to the last element of the
200  // z_values[][] array and no correction is applied.
201  }
202 
203  //
204  // See comments above for z_correction_for_x_on_horizontal_mesh_line
205  //
206  static inline float z_correction_for_y_on_vertical_mesh_line(const float &ry0, const int xi, const int y1_i) {
207  if (!WITHIN(xi, 0, GRID_MAX_POINTS_X - 1) || !WITHIN(y1_i, 0, GRID_MAX_POINTS_Y - 1)) {
208 
209  if (DEBUGGING(LEVELING)) {
210  if (WITHIN(xi, 0, GRID_MAX_POINTS_X - 1)) DEBUG_ECHOPGM("y1_i"); else DEBUG_ECHOPGM("xi");
211  DEBUG_ECHOLNPAIR(" out of bounds in z_correction_for_y_on_vertical_mesh_line(ry0=", ry0, ", xi=", xi, ", y1_i=", y1_i, ")");
212  }
213 
214  // The requested location is off the mesh. Return UBL_Z_RAISE_WHEN_OFF_MESH or NAN.
215  return (
216  #ifdef UBL_Z_RAISE_WHEN_OFF_MESH
217  UBL_Z_RAISE_WHEN_OFF_MESH
218  #else
219  NAN
220  #endif
221  );
222  }
223 
224  const float yratio = (ry0 - mesh_index_to_ypos(y1_i)) * RECIPROCAL(MESH_Y_DIST),
225  z1 = z_values[xi][y1_i];
226 
227  return z1 + yratio * (z_values[xi][_MIN(y1_i, GRID_MAX_POINTS_Y - 2) + 1] - z1); // Don't allow y1_i+1 to be past the end of the array
228  // If it is, it is clamped to the last element of the
229  // z_values[][] array and no correction is applied.
230  }
231 
232  /**
233  * This is the generic Z-Correction. It works anywhere within a Mesh Cell. It first
234  * does a linear interpolation along both of the bounding X-Mesh-Lines to find the
235  * Z-Height at both ends. Then it does a linear interpolation of these heights based
236  * on the Y position within the cell.
237  */
238  static float get_z_correction(const float &rx0, const float &ry0) {
239  const int8_t cx = cell_index_x(rx0), cy = cell_index_y(ry0); // return values are clamped
240 
241  /**
242  * Check if the requested location is off the mesh. If so, and
243  * UBL_Z_RAISE_WHEN_OFF_MESH is specified, that value is returned.
244  */
245  #ifdef UBL_Z_RAISE_WHEN_OFF_MESH
246  if (!WITHIN(rx0, MESH_MIN_X, MESH_MAX_X) || !WITHIN(ry0, MESH_MIN_Y, MESH_MAX_Y))
247  return UBL_Z_RAISE_WHEN_OFF_MESH;
248  #endif
249 
250  const float z1 = calc_z0(rx0,
251  mesh_index_to_xpos(cx), z_values[cx][cy],
252  mesh_index_to_xpos(cx + 1), z_values[_MIN(cx, GRID_MAX_POINTS_X - 2) + 1][cy]);
253 
254  const float z2 = calc_z0(rx0,
255  mesh_index_to_xpos(cx), z_values[cx][_MIN(cy, GRID_MAX_POINTS_Y - 2) + 1],
256  mesh_index_to_xpos(cx + 1), z_values[_MIN(cx, GRID_MAX_POINTS_X - 2) + 1][_MIN(cy, GRID_MAX_POINTS_Y - 2) + 1]);
257 
258  float z0 = calc_z0(ry0,
259  mesh_index_to_ypos(cy), z1,
260  mesh_index_to_ypos(cy + 1), z2);
261 
262  if (DEBUGGING(MESH_ADJUST)) {
263  DEBUG_ECHOPAIR(" raw get_z_correction(", rx0);
264  DEBUG_CHAR(','); DEBUG_ECHO(ry0);
265  DEBUG_ECHOPAIR_F(") = ", z0, 6);
266  DEBUG_ECHOLNPAIR_F(" >>>---> ", z0, 6);
267  }
268 
269  if (isnan(z0)) { // if part of the Mesh is undefined, it will show up as NAN
270  z0 = 0.0; // in ubl.z_values[][] and propagate through the
271  // calculations. If our correction is NAN, we throw it out
272  // because part of the Mesh is undefined and we don't have the
273  // information we need to complete the height correction.
274 
275  if (DEBUGGING(MESH_ADJUST)) {
276  DEBUG_ECHOPAIR("??? Yikes! NAN in get_z_correction(", rx0);
277  DEBUG_CHAR(',');
278  DEBUG_ECHO(ry0);
279  DEBUG_CHAR(')');
280  DEBUG_EOL();
281  }
282  }
283  return z0;
284  }
285  static inline float get_z_correction(const xy_pos_t &pos) { return get_z_correction(pos.x, pos.y); }
286 
287  static inline float mesh_index_to_xpos(const uint8_t i) {
288  return i < GRID_MAX_POINTS_X ? pgm_read_float(&_mesh_index_to_xpos[i]) : MESH_MIN_X + i * (MESH_X_DIST);
289  }
290  static inline float mesh_index_to_ypos(const uint8_t i) {
291  return i < GRID_MAX_POINTS_Y ? pgm_read_float(&_mesh_index_to_ypos[i]) : MESH_MIN_Y + i * (MESH_Y_DIST);
292  }
293 
294  #if UBL_SEGMENTED
295  static bool line_to_destination_segmented(const feedRate_t &scaled_fr_mm_s);
296  #else
297  static void line_to_destination_cartesian(const feedRate_t &scaled_fr_mm_s, const uint8_t e);
298  #endif
299 
300  static inline bool mesh_is_valid() {
301  for (uint8_t x = 0; x < GRID_MAX_POINTS_X; x++)
302  for (uint8_t y = 0; y < GRID_MAX_POINTS_Y; y++)
303  if (isnan(z_values[x][y])) return false;
304  return true;
305  }
306 
307 }; // class unified_bed_leveling
308 
310 
311 #define _GET_MESH_X(I) ubl.mesh_index_to_xpos(I)
312 #define _GET_MESH_Y(J) ubl.mesh_index_to_ypos(J)
313 #define Z_VALUES_ARR ubl.z_values
314 
315 // Prevent debugging propagating to other files
316 #include "../../../core/debug_out.h"
WITHIN
#define WITHIN(N, L, H)
Definition: macros.h:195
SERIAL_ECHO_TERNARY
#define SERIAL_ECHO_TERNARY(TF, PRE, ON, OFF, POST)
Definition: serial.h:188
SERIAL_CHAR
#define SERIAL_CHAR(x)
Definition: serial.h:69
unified_bed_leveling::G29
static void G29() _O0
_O2
#define _O2
Definition: macros.h:45
unified_bed_leveling::z_correction_for_y_on_vertical_mesh_line
static float z_correction_for_y_on_vertical_mesh_line(const float &ry0, const int xi, const int y1_i)
Definition: ubl.h:206
SERIAL_ECHO
#define SERIAL_ECHO(x)
Definition: serial.h:70
unified_bed_leveling::mesh_index_to_ypos
static float mesh_index_to_ypos(const uint8_t i)
Definition: ubl.h:290
unified_bed_leveling::adjust_mesh_to_mean
static void adjust_mesh_to_mean(const bool cflag, const float value)
unified_bed_leveling
Definition: ubl.h:44
probe_offset
constexpr xyz_pos_t probe_offset
Definition: probe.h:58
unified_bed_leveling::get_z_correction
static float get_z_correction(const xy_pos_t &pos)
Definition: ubl.h:285
unified_bed_leveling::z_correction_for_x_on_horizontal_mesh_line
static float z_correction_for_x_on_horizontal_mesh_line(const float &rx0, const int x1_i, const int yi)
Definition: ubl.h:177
PROGMEM
#define PROGMEM
Definition: pgmspace.h:29
settings
MarlinSettings settings
Definition: configuration_store.cpp:344
unified_bed_leveling::display_map
static void display_map(const int) _O0
RECIPROCAL
#define RECIPROCAL(x)
Definition: macros.h:273
unified_bed_leveling::report_state
static void report_state()
DEBUG_EOL
#define DEBUG_EOL()
Definition: debug_out.h:86
Planner::leveling_active
static bool leveling_active
Definition: planner.h:276
SERIAL_ECHOPAIR
#define SERIAL_ECHOPAIR(V...)
Definition: serial.h:114
unified_bed_leveling::reset
static void reset()
i
uint8_t i
Definition: screen_test_graph.c:72
SERIAL_ECHOLNPAIR_F
#define SERIAL_ECHOLNPAIR_F(V...)
Definition: serial.h:177
unified_bed_leveling::storage_slot
static int8_t storage_slot
Definition: ubl.h:106
_MIN
#define _MIN(V...)
Definition: macros.h:333
Y
Definition: L6470_Marlin.h:30
leveling_is_valid
bool leveling_is_valid()
unified_bed_leveling::line_to_destination_cartesian
static void line_to_destination_cartesian(const feedRate_t &scaled_fr_mm_s, const uint8_t e)
unified_bed_leveling::restore_ubl_active_state_and_leave
static void restore_ubl_active_state_and_leave()
xy_pos_t
xy_float_t xy_pos_t
Definition: types.h:159
unified_bed_leveling::closest_indexes
static xy_int8_t closest_indexes(const xy_pos_t &xy)
Definition: ubl.h:150
DEBUG_ECHOLNPAIR
#define DEBUG_ECHOLNPAIR(...)
Definition: debug_out.h:82
unified_bed_leveling::mesh_index_to_xpos
static float mesh_index_to_xpos(const uint8_t i)
Definition: ubl.h:287
SERIAL_ECHO_START
#define SERIAL_ECHO_START()
Definition: serial.h:179
feedRate_t
float feedRate_t
Definition: types.h:80
SERIAL_ECHO_SP
#define SERIAL_ECHO_SP(C)
Definition: serial.h:186
REAL
Definition: ubl.h:35
unified_bed_leveling::sanity_check
static bool sanity_check()
unified_bed_leveling::closest_x_index
static int8_t closest_x_index(const float &x)
Definition: ubl.h:142
INVALID
Definition: ubl.h:35
DEBUG_ECHOPGM
#define DEBUG_ECHOPGM(...)
Definition: debug_out.h:78
unified_bed_leveling::calc_z0
static FORCE_INLINE float calc_z0(const float &a0, const float &a1, const float &z1, const float &a2, const float &z2)
Definition: ubl.h:169
MESH_Y_DIST
#define MESH_Y_DIST
Definition: ubl.h:42
math.h
DEBUG_ECHOLNPAIR_F
#define DEBUG_ECHOLNPAIR_F(...)
Definition: debug_out.h:83
MESH_X_DIST
#define MESH_X_DIST
Definition: ubl.h:41
unified_bed_leveling::cell_indexes
static xy_int8_t cell_indexes(const xy_pos_t &xy)
Definition: ubl.h:140
unified_bed_leveling::find_closest_mesh_point_of_type
static mesh_index_pair find_closest_mesh_point_of_type(const MeshPointType, const xy_pos_t &, const bool=false, MeshFlags *done_flags=nullptr) _O0
unified_bed_leveling::_mesh_index_to_xpos
static const float _mesh_index_to_xpos[GRID_MAX_POINTS_X]
Definition: ubl.h:109
ZERO
#define ZERO(a)
Definition: macros.h:201
unified_bed_leveling::invalidate
static void invalidate()
FORCE_INLINE
#define FORCE_INLINE
Definition: macros.h:40
SERIAL_ECHO_MSG
#define SERIAL_ECHO_MSG(S)
Definition: serial.h:183
PSTR
#define PSTR(str)
Definition: pgmspace.h:31
set_bed_leveling_enabled
void set_bed_leveling_enabled(const bool enable=true)
current_position
xyze_pos_t current_position
Definition: motion.cpp:102
unified_bed_leveling::_mesh_index_to_ypos
static const float _mesh_index_to_ypos[GRID_MAX_POINTS_Y]
Definition: ubl.h:109
unified_bed_leveling::cell_index_x
static int8_t cell_index_x(const float &x)
Definition: ubl.h:122
isnan
#define isnan
Definition: Arduino.h:55
ExtUI::onMeshUpdate
void onMeshUpdate(const uint8_t xpos, const uint8_t ypos, const float zval)
Definition: marlin_server.cpp:945
unified_bed_leveling::find_furthest_invalid_mesh_point
static mesh_index_pair find_furthest_invalid_mesh_point() _O0
unified_bed_leveling::cell_indexes
static xy_int8_t cell_indexes(const float &x, const float &y)
Definition: ubl.h:137
constrain
#define constrain(amt, low, high)
Definition: wiring_constants.h:79
SERIAL_ECHO_F
#define SERIAL_ECHO_F(V...)
Definition: serial.h:71
pgm_read_float
#define pgm_read_float(addr)
Definition: pgmspace.h:109
SERIAL_ECHOPGM
#define SERIAL_ECHOPGM(S)
Definition: serial.h:173
SET_IN_BITMAP
Definition: ubl.h:35
XYval
Definition: types.h:99
unified_bed_leveling::get_z_correction
static float get_z_correction(const float &rx0, const float &ry0)
Definition: ubl.h:238
XYval::x
T x
Definition: types.h:185
uint8_t
const uint8_t[]
Definition: 404_html.c:3
unified_bed_leveling::closest_y_index
static int8_t closest_y_index(const float &y)
Definition: ubl.h:146
UBL_VERSION
#define UBL_VERSION
Definition: ubl.h:31
unified_bed_leveling::mesh_is_valid
static bool mesh_is_valid()
Definition: ubl.h:300
DEBUG_ECHO
#define DEBUG_ECHO(...)
Definition: debug_out.h:75
DEBUG_ECHOPAIR_F
#define DEBUG_ECHOPAIR_F(...)
Definition: debug_out.h:81
_O0
#define _O0
Definition: macros.h:42
ubl
unified_bed_leveling ubl
unified_bed_leveling::set_all_mesh_points_to_value
static void set_all_mesh_points_to_value(const float value)
unified_bed_leveling::unified_bed_leveling
unified_bed_leveling()
DEBUGGING
#define DEBUGGING(F)
Definition: serial.h:47
report_current_position
void report_current_position()
Definition: motion.cpp:199
unified_bed_leveling::report_current_mesh
static void report_current_mesh()
unified_bed_leveling::smart_fill_wlsf
static void smart_fill_wlsf(const float &) _O2
ARRAY_N
#define ARRAY_N(N, V...)
Definition: macros.h:227
unified_bed_leveling::encoder_diff
static volatile int encoder_diff
Definition: ubl.h:116
MeshPointType
MeshPointType
Definition: ubl.h:35
SERIAL_EOL
#define SERIAL_EOL()
Definition: serial.h:181
DEBUG_ECHOPAIR
#define DEBUG_ECHOPAIR(...)
Definition: debug_out.h:80
SERIAL_FLUSHTX
#define SERIAL_FLUSHTX()
Definition: serial.h:81
XYval::y
T y
Definition: types.h:185
serial_delay
void serial_delay(const millis_t ms)
Definition: utility.h:31
serialprintPGM
void serialprintPGM(PGM_P str)
Definition: serial.cpp:35
SERIAL_ECHOLNPGM
#define SERIAL_ECHOLNPGM(S)
Definition: serial.h:174
DEBUG_CHAR
#define DEBUG_CHAR(...)
Definition: debug_out.h:74
X
Definition: L6470_Marlin.h:30
unified_bed_leveling::set_z
static FORCE_INLINE void set_z(const int8_t px, const int8_t py, const float &z)
Definition: ubl.h:120
idle
void idle()
Definition: Marlin.cpp:629
unified_bed_leveling::echo_name
static void echo_name()
unified_bed_leveling::save_ubl_active_state_and_disable
static void save_ubl_active_state_and_disable()
unified_bed_leveling::cell_index_y
static int8_t cell_index_y(const float &y)
Definition: ubl.h:129
unified_bed_leveling::z_values
static bed_mesh_t z_values
Definition: ubl.h:108
suspend_auto_report
bool suspend_auto_report
Definition: Marlin.cpp:192
planner
Planner planner
Definition: planner.cpp:111