|
@@ -4031,7 +4031,7 @@ void home_all_axes() { gcode_G28(); }
|
4031
|
4031
|
#endif
|
4032
|
4032
|
}
|
4033
|
4033
|
// If there's another point to sample, move there with optional lift.
|
4034
|
|
- if (mbl_probe_index < (GRID_MAX_POINTS_X) * (GRID_MAX_POINTS_Y)) {
|
|
4034
|
+ if (mbl_probe_index < GRID_MAX_POINTS) {
|
4035
|
4035
|
mbl.zigzag(mbl_probe_index, px, py);
|
4036
|
4036
|
_manual_goto_xy(mbl.index_to_xpos[px], mbl.index_to_ypos[py]);
|
4037
|
4037
|
|
|
@@ -4250,8 +4250,6 @@ void home_all_axes() { gcode_G28(); }
|
4250
|
4250
|
ABL_VAR int left_probe_bed_position, right_probe_bed_position, front_probe_bed_position, back_probe_bed_position;
|
4251
|
4251
|
ABL_VAR float xGridSpacing, yGridSpacing;
|
4252
|
4252
|
|
4253
|
|
- #define ABL_GRID_MAX (GRID_MAX_POINTS_X) * (GRID_MAX_POINTS_Y)
|
4254
|
|
-
|
4255
|
4253
|
#if ABL_PLANAR
|
4256
|
4254
|
ABL_VAR uint8_t abl_grid_points_x = GRID_MAX_POINTS_X,
|
4257
|
4255
|
abl_grid_points_y = GRID_MAX_POINTS_Y;
|
|
@@ -4265,7 +4263,7 @@ void home_all_axes() { gcode_G28(); }
|
4265
|
4263
|
#if ABL_PLANAR
|
4266
|
4264
|
ABL_VAR int abl2;
|
4267
|
4265
|
#else // 3-point
|
4268
|
|
- int constexpr abl2 = ABL_GRID_MAX;
|
|
4266
|
+ int constexpr abl2 = GRID_MAX_POINTS;
|
4269
|
4267
|
#endif
|
4270
|
4268
|
#endif
|
4271
|
4269
|
|
|
@@ -4277,8 +4275,8 @@ void home_all_axes() { gcode_G28(); }
|
4277
|
4275
|
|
4278
|
4276
|
ABL_VAR int indexIntoAB[GRID_MAX_POINTS_X][GRID_MAX_POINTS_Y];
|
4279
|
4277
|
|
4280
|
|
- ABL_VAR float eqnAMatrix[ABL_GRID_MAX * 3], // "A" matrix of the linear system of equations
|
4281
|
|
- eqnBVector[ABL_GRID_MAX], // "B" vector of Z points
|
|
4278
|
+ ABL_VAR float eqnAMatrix[GRID_MAX_POINTS * 3], // "A" matrix of the linear system of equations
|
|
4279
|
+ eqnBVector[GRID_MAX_POINTS], // "B" vector of Z points
|
4282
|
4280
|
mean;
|
4283
|
4281
|
#endif
|
4284
|
4282
|
|