|
@@ -308,22 +308,22 @@ class Planner {
|
308
|
308
|
* The target is cartesian, it's translated to delta/scara if
|
309
|
309
|
* needed.
|
310
|
310
|
*
|
311
|
|
- * target - x,y,z,e CARTESIAN target in mm
|
|
311
|
+ * ltarget - x,y,z,e CARTESIAN target in mm
|
312
|
312
|
* fr_mm_s - (target) speed of the move (mm/s)
|
313
|
313
|
* extruder - target extruder
|
314
|
314
|
*/
|
315
|
|
- static FORCE_INLINE void buffer_line_kinematic(const float target[XYZE], const float &fr_mm_s, const uint8_t extruder) {
|
|
315
|
+ static FORCE_INLINE void buffer_line_kinematic(const float ltarget[XYZE], const float &fr_mm_s, const uint8_t extruder) {
|
316
|
316
|
#if PLANNER_LEVELING
|
317
|
|
- float pos[XYZ] = { target[X_AXIS], target[Y_AXIS], target[Z_AXIS] };
|
318
|
|
- apply_leveling(pos);
|
|
317
|
+ float lpos[XYZ] = { ltarget[X_AXIS], ltarget[Y_AXIS], ltarget[Z_AXIS] };
|
|
318
|
+ apply_leveling(lpos);
|
319
|
319
|
#else
|
320
|
|
- const float * const pos = target;
|
|
320
|
+ const float * const lpos = ltarget;
|
321
|
321
|
#endif
|
322
|
322
|
#if IS_KINEMATIC
|
323
|
|
- inverse_kinematics(pos);
|
324
|
|
- _buffer_line(delta[A_AXIS], delta[B_AXIS], delta[C_AXIS], target[E_AXIS], fr_mm_s, extruder);
|
|
323
|
+ inverse_kinematics(lpos);
|
|
324
|
+ _buffer_line(delta[A_AXIS], delta[B_AXIS], delta[C_AXIS], ltarget[E_AXIS], fr_mm_s, extruder);
|
325
|
325
|
#else
|
326
|
|
- _buffer_line(pos[X_AXIS], pos[Y_AXIS], pos[Z_AXIS], target[E_AXIS], fr_mm_s, extruder);
|
|
326
|
+ _buffer_line(lpos[X_AXIS], lpos[Y_AXIS], lpos[Z_AXIS], ltarget[E_AXIS], fr_mm_s, extruder);
|
327
|
327
|
#endif
|
328
|
328
|
}
|
329
|
329
|
|