|
@@ -2397,8 +2397,15 @@ bool Planner::_populate_block(block_t * const block, bool split_move,
|
2397
|
2397
|
LOOP_XYZE(i)
|
2398
|
2398
|
#endif
|
2399
|
2399
|
{
|
2400
|
|
- const float jerk = ABS(current_speed[i]), // cs : Starting from zero, change in speed for this axis
|
2401
|
|
- maxj = max_jerk[i]; // mj : The max jerk setting for this axis
|
|
2400
|
+ const float jerk = ABS(current_speed[i]); // cs : Starting from zero, change in speed for this axis
|
|
2401
|
+
|
|
2402
|
+ float maxj = max_jerk[i]; // mj : The max jerk setting for this axis
|
|
2403
|
+
|
|
2404
|
+ #ifdef TRAVEL_EXTRA_XYJERK
|
|
2405
|
+ if ((TRAVEL_EXTRA_XYJERK) && !de <= 0 && (i == X_AXIS || i == Y_AXIS))
|
|
2406
|
+ maxj += TRAVEL_EXTRA_XYJERK; // Extra jerk allowance for travel moves
|
|
2407
|
+ #endif
|
|
2408
|
+
|
2402
|
2409
|
if (jerk > maxj) { // cs > mj : New current speed too fast?
|
2403
|
2410
|
if (limited) { // limited already?
|
2404
|
2411
|
const float mjerk = nominal_speed * maxj; // ns*mj
|