|
@@ -809,14 +809,10 @@ static void set_bed_level_equation_lsq(double *plane_equation_coefficients)
|
809
|
809
|
plan_bed_level_matrix = matrix_3x3::create_look_at(planeNormal);
|
810
|
810
|
//bedLevel.debug("bedLevel");
|
811
|
811
|
|
812
|
|
- plan_bed_level_matrix.debug("bed level before");
|
|
812
|
+ //plan_bed_level_matrix.debug("bed level before");
|
813
|
813
|
//vector_3 uncorrected_position = plan_get_position_mm();
|
814
|
814
|
//uncorrected_position.debug("position before");
|
815
|
815
|
|
816
|
|
- // and set our bed level equation to do the right thing
|
817
|
|
-// plan_bed_level_matrix = matrix_3x3::create_inverse(bedLevel);
|
818
|
|
-// plan_bed_level_matrix.debug("bed level after");
|
819
|
|
-
|
820
|
816
|
vector_3 corrected_position = plan_get_position();
|
821
|
817
|
// corrected_position.debug("position after");
|
822
|
818
|
current_position[X_AXIS] = corrected_position.x;
|
|
@@ -824,7 +820,7 @@ static void set_bed_level_equation_lsq(double *plane_equation_coefficients)
|
824
|
820
|
current_position[Z_AXIS] = corrected_position.z;
|
825
|
821
|
|
826
|
822
|
// but the bed at 0 so we don't go below it.
|
827
|
|
- current_position[Z_AXIS] = -Z_PROBE_OFFSET_FROM_EXTRUDER; // in the lsq we reach here after raising the extruder due to the loop structure
|
|
823
|
+ current_position[Z_AXIS] = -Z_PROBE_OFFSET_FROM_EXTRUDER;
|
828
|
824
|
|
829
|
825
|
plan_set_position(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS]);
|
830
|
826
|
}
|