|
@@ -2085,6 +2085,13 @@ static void setup_for_endstop_move() {
|
2085
|
2085
|
|
2086
|
2086
|
planner.bed_level_matrix.set_to_identity();
|
2087
|
2087
|
|
|
2088
|
+ #if ENABLED(DEBUG_LEVELING_FEATURE)
|
|
2089
|
+ if (DEBUGGING(LEVELING)) {
|
|
2090
|
+ vector_3 uncorrected_position = planner.adjusted_position();
|
|
2091
|
+ DEBUG_POS("set_bed_level_equation_3pts", uncorrected_position);
|
|
2092
|
+ }
|
|
2093
|
+ #endif
|
|
2094
|
+
|
2088
|
2095
|
vector_3 pt1 = vector_3(ABL_PROBE_PT_1_X, ABL_PROBE_PT_1_Y, z_at_pt_1);
|
2089
|
2096
|
vector_3 pt2 = vector_3(ABL_PROBE_PT_2_X, ABL_PROBE_PT_2_Y, z_at_pt_2);
|
2090
|
2097
|
vector_3 pt3 = vector_3(ABL_PROBE_PT_3_X, ABL_PROBE_PT_3_Y, z_at_pt_3);
|
|
@@ -2097,16 +2104,8 @@ static void setup_for_endstop_move() {
|
2097
|
2104
|
}
|
2098
|
2105
|
|
2099
|
2106
|
planner.bed_level_matrix = matrix_3x3::create_look_at(planeNormal);
|
2100
|
|
-
|
2101
|
2107
|
vector_3 corrected_position = planner.adjusted_position();
|
2102
|
2108
|
|
2103
|
|
- #if ENABLED(DEBUG_LEVELING_FEATURE)
|
2104
|
|
- if (DEBUGGING(LEVELING)) {
|
2105
|
|
- vector_3 uncorrected_position = corrected_position;
|
2106
|
|
- DEBUG_POS("set_bed_level_equation_3pts", uncorrected_position);
|
2107
|
|
- }
|
2108
|
|
- #endif
|
2109
|
|
-
|
2110
|
2109
|
current_position[X_AXIS] = corrected_position.x;
|
2111
|
2110
|
current_position[Y_AXIS] = corrected_position.y;
|
2112
|
2111
|
current_position[Z_AXIS] = corrected_position.z;
|