|
@ -199,6 +199,10 @@ void plan_arc( |
|
|
ADJUST_DELTA(raw); |
|
|
ADJUST_DELTA(raw); |
|
|
planner.buffer_segment(delta[A_AXIS], delta[B_AXIS], raw[Z_AXIS], raw[E_AXIS], HYPOT(delta[A_AXIS] - oldA, delta[B_AXIS] - oldB) * inverse_secs, active_extruder); |
|
|
planner.buffer_segment(delta[A_AXIS], delta[B_AXIS], raw[Z_AXIS], raw[E_AXIS], HYPOT(delta[A_AXIS] - oldA, delta[B_AXIS] - oldB) * inverse_secs, active_extruder); |
|
|
oldA = delta[A_AXIS]; oldB = delta[B_AXIS]; |
|
|
oldA = delta[A_AXIS]; oldB = delta[B_AXIS]; |
|
|
|
|
|
#elif HAS_UBL_AND_CURVES |
|
|
|
|
|
float pos[XYZ] = { raw[X_AXIS], raw[Y_AXIS], raw[Z_AXIS] }; |
|
|
|
|
|
planner.apply_leveling(pos); |
|
|
|
|
|
planner.buffer_segment(pos[X_AXIS], pos[Y_AXIS], pos[Z_AXIS], raw[E_AXIS], fr_mm_s, active_extruder); |
|
|
#else |
|
|
#else |
|
|
planner.buffer_line_kinematic(raw, fr_mm_s, active_extruder); |
|
|
planner.buffer_line_kinematic(raw, fr_mm_s, active_extruder); |
|
|
#endif |
|
|
#endif |
|
@ -211,6 +215,10 @@ void plan_arc( |
|
|
const float diff2 = HYPOT2(delta[A_AXIS] - oldA, delta[B_AXIS] - oldB); |
|
|
const float diff2 = HYPOT2(delta[A_AXIS] - oldA, delta[B_AXIS] - oldB); |
|
|
if (diff2) |
|
|
if (diff2) |
|
|
planner.buffer_segment(delta[A_AXIS], delta[B_AXIS], cart[Z_AXIS], cart[E_AXIS], SQRT(diff2) * inverse_secs, active_extruder); |
|
|
planner.buffer_segment(delta[A_AXIS], delta[B_AXIS], cart[Z_AXIS], cart[E_AXIS], SQRT(diff2) * inverse_secs, active_extruder); |
|
|
|
|
|
#elif HAS_UBL_AND_CURVES |
|
|
|
|
|
float pos[XYZ] = { cart[X_AXIS], cart[Y_AXIS], cart[Z_AXIS] }; |
|
|
|
|
|
planner.apply_leveling(pos); |
|
|
|
|
|
planner.buffer_segment(pos[X_AXIS], pos[Y_AXIS], pos[Z_AXIS], cart[E_AXIS], fr_mm_s, active_extruder); |
|
|
#else |
|
|
#else |
|
|
planner.buffer_line_kinematic(cart, fr_mm_s, active_extruder); |
|
|
planner.buffer_line_kinematic(cart, fr_mm_s, active_extruder); |
|
|
#endif |
|
|
#endif |
|
|