Bläddra i källkod

Tweak to planner.cpp position.debug

Scott Lahteine 9 år sedan
förälder
incheckning
35493e1af9
1 ändrade filer med 5 tillägg och 5 borttagningar
  1. 5
    5
      Marlin/planner.cpp

+ 5
- 5
Marlin/planner.cpp Visa fil

@@ -959,7 +959,7 @@ float junction_deviation = 0.1;
959 959
     vector_3 position = vector_3(st_get_position_mm(X_AXIS), st_get_position_mm(Y_AXIS), st_get_position_mm(Z_AXIS));
960 960
 
961 961
     //position.debug("in plan_get position");
962
-    //plan_bed_level_matrix.debug("in plan_get bed_level");
962
+    //plan_bed_level_matrix.debug("in plan_get_position");
963 963
     matrix_3x3 inverse = matrix_3x3::transpose(plan_bed_level_matrix);
964 964
     //inverse.debug("in plan_get inverse");
965 965
     position.apply_rotation(inverse);
@@ -981,10 +981,10 @@ float junction_deviation = 0.1;
981 981
       apply_rotation_xyz(plan_bed_level_matrix, x, y, z);
982 982
     #endif
983 983
 
984
-    float nx = position[X_AXIS] = lround(x * axis_steps_per_unit[X_AXIS]);
985
-    float ny = position[Y_AXIS] = lround(y * axis_steps_per_unit[Y_AXIS]);
986
-    float nz = position[Z_AXIS] = lround(z * axis_steps_per_unit[Z_AXIS]);
987
-    float ne = position[E_AXIS] = lround(e * axis_steps_per_unit[E_AXIS]);
984
+    float nx = position[X_AXIS] = lround(x * axis_steps_per_unit[X_AXIS]),
985
+          ny = position[Y_AXIS] = lround(y * axis_steps_per_unit[Y_AXIS]),
986
+          nz = position[Z_AXIS] = lround(z * axis_steps_per_unit[Z_AXIS]),
987
+          ne = position[E_AXIS] = lround(e * axis_steps_per_unit[E_AXIS]);
988 988
     st_set_position(nx, ny, nz, ne);
989 989
     previous_nominal_speed = 0.0; // Resets planner junction speeds. Assumes start from rest.
990 990
 

Laddar…
Avbryt
Spara