From 35493e1af9d722893a6061bfe01b9b34ded83a65 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Sun, 3 May 2015 16:03:05 -0700 Subject: [PATCH] Tweak to planner.cpp position.debug --- Marlin/planner.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Marlin/planner.cpp b/Marlin/planner.cpp index a8558d6c4..0b9efb8d7 100644 --- a/Marlin/planner.cpp +++ b/Marlin/planner.cpp @@ -959,7 +959,7 @@ float junction_deviation = 0.1; vector_3 position = vector_3(st_get_position_mm(X_AXIS), st_get_position_mm(Y_AXIS), st_get_position_mm(Z_AXIS)); //position.debug("in plan_get position"); - //plan_bed_level_matrix.debug("in plan_get bed_level"); + //plan_bed_level_matrix.debug("in plan_get_position"); matrix_3x3 inverse = matrix_3x3::transpose(plan_bed_level_matrix); //inverse.debug("in plan_get inverse"); position.apply_rotation(inverse); @@ -981,10 +981,10 @@ float junction_deviation = 0.1; apply_rotation_xyz(plan_bed_level_matrix, x, y, z); #endif - float nx = position[X_AXIS] = lround(x * axis_steps_per_unit[X_AXIS]); - float ny = position[Y_AXIS] = lround(y * axis_steps_per_unit[Y_AXIS]); - float nz = position[Z_AXIS] = lround(z * axis_steps_per_unit[Z_AXIS]); - float ne = position[E_AXIS] = lround(e * axis_steps_per_unit[E_AXIS]); + float nx = position[X_AXIS] = lround(x * axis_steps_per_unit[X_AXIS]), + ny = position[Y_AXIS] = lround(y * axis_steps_per_unit[Y_AXIS]), + nz = position[Z_AXIS] = lround(z * axis_steps_per_unit[Z_AXIS]), + ne = position[E_AXIS] = lround(e * axis_steps_per_unit[E_AXIS]); st_set_position(nx, ny, nz, ne); previous_nominal_speed = 0.0; // Resets planner junction speeds. Assumes start from rest.