|
@@ -135,9 +135,12 @@
|
135
|
135
|
* a subsequent G or T leveling operation for backward compatibility.
|
136
|
136
|
*
|
137
|
137
|
* P1 Phase 1 Invalidate entire Mesh and continue with automatic generation of the Mesh data using
|
138
|
|
- * the Z-Probe. Depending upon the values of DELTA_PROBEABLE_RADIUS and
|
139
|
|
- * DELTA_PRINTABLE_RADIUS some area of the bed will not have Mesh Data automatically
|
140
|
|
- * generated. This will be handled in Phase 2. If the Phase 1 command is given the
|
|
138
|
+ * the Z-Probe. Usually the probe can not reach all areas that the nozzle can reach.
|
|
139
|
+ * In Cartesian printers, mesh points within the X_OFFSET_FROM_EXTRUDER and Y_OFFSET_FROM_EXTRUDER
|
|
140
|
+ * area can not be automatically probed. For Delta printers the area in which DELTA_PROBEABLE_RADIUS
|
|
141
|
+ * and DELTA_PRINTABLE_RADIUS do not overlap will not be automatically probed.
|
|
142
|
+ *
|
|
143
|
+ * These points will be handled in Phase 2 and Phase 3. If the Phase 1 command is given the
|
141
|
144
|
* C (Continue) parameter it does not invalidate the Mesh prior to automatically
|
142
|
145
|
* probing needed locations. This allows you to invalidate portions of the Mesh but still
|
143
|
146
|
* use the automatic probing capabilities of the Unified Bed Leveling System. An X and Y
|
|
@@ -254,13 +257,13 @@
|
254
|
257
|
* to reconstruct the current mesh on another machine.
|
255
|
258
|
*
|
256
|
259
|
* T Topology Display the Mesh Map Topology.
|
257
|
|
- * 'T' can be used alone (e.g., G29 T) or in combination with some of the other commands.
|
258
|
|
- * This option works with all Phase commands (e.g., G29 P4 R 5 X 50 Y100 C -.1 O)
|
|
260
|
+ * 'T' can be used alone (e.g., G29 T) or in combination with most of the other commands.
|
|
261
|
+ * This option works with all Phase commands (e.g., G29 P4 R 5 T X 50 Y100 C -.1 O)
|
259
|
262
|
* This parameter can also specify a Map Type. T0 (the default) is user-readable. T1 can
|
260
|
263
|
* is suitable to paste into a spreadsheet for a 3D graph of the mesh.
|
261
|
264
|
*
|
262
|
265
|
* U Unlevel Perform a probe of the outer perimeter to assist in physically leveling unlevel beds.
|
263
|
|
- * Only used for G29 P1 O U. This speeds up the probing of the edge of the bed. Useful
|
|
266
|
+ * Only used for G29 P1 T U. This speeds up the probing of the edge of the bed. Useful
|
264
|
267
|
* when the entire bed doesn't need to be probed because it will be adjusted.
|
265
|
268
|
*
|
266
|
269
|
* V # Verbosity Set the verbosity level (0-4) for extra details. (Default 0)
|
|
@@ -317,11 +320,19 @@
|
317
|
320
|
return;
|
318
|
321
|
}
|
319
|
322
|
|
320
|
|
- // Don't allow auto-leveling without homing first
|
|
323
|
+ // Check for commands that require the printer to be homed.
|
321
|
324
|
if (axis_unhomed_error()) {
|
322
|
|
- if (code_seen('P') && !code_seen('P6') || code_seen('J')) {
|
|
325
|
+ if (code_seen('J'))
|
323
|
326
|
home_all_axes();
|
324
|
|
- }
|
|
327
|
+ else
|
|
328
|
+ if (code_seen('P')) {
|
|
329
|
+ int p_val;
|
|
330
|
+ if (code_has_value()) {
|
|
331
|
+ p_val = code_value_int();
|
|
332
|
+ if ( p_val==1 || p_val==2 || p_val==4 )
|
|
333
|
+ home_all_axes();
|
|
334
|
+ }
|
|
335
|
+ }
|
325
|
336
|
}
|
326
|
337
|
|
327
|
338
|
if (g29_parameter_parsing()) return; // abort if parsing the simple parameters causes a problem,
|