|
@@ -1183,7 +1183,12 @@ void Planner::reset_acceleration_rates() {
|
1183
|
1183
|
// Recalculate position, steps_to_mm if axis_steps_per_mm changes!
|
1184
|
1184
|
void Planner::refresh_positioning() {
|
1185
|
1185
|
LOOP_XYZE(i) planner.steps_to_mm[i] = 1.0 / planner.axis_steps_per_mm[i];
|
1186
|
|
- set_position_mm(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS]);
|
|
1186
|
+ #if ENABLED(DELTA) || ENABLED(SCARA)
|
|
1187
|
+ inverse_kinematics(current_position);
|
|
1188
|
+ set_position_mm(delta[X_AXIS], delta[Y_AXIS], delta[Z_AXIS], current_position[E_AXIS]);
|
|
1189
|
+ #else
|
|
1190
|
+ set_position_mm(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS]);
|
|
1191
|
+ #endif
|
1187
|
1192
|
reset_acceleration_rates();
|
1188
|
1193
|
}
|
1189
|
1194
|
|