Add TRAVEL_EXTRA_XYJERK option
See #16949 Co-Authored-By: josedpedroso <josedpedroso@users.noreply.github.com>
This commit is contained in:
@ -2397,8 +2397,15 @@ bool Planner::_populate_block(block_t * const block, bool split_move,
|
||||
LOOP_XYZE(i)
|
||||
#endif
|
||||
{
|
||||
const float jerk = ABS(current_speed[i]), // cs : Starting from zero, change in speed for this axis
|
||||
maxj = max_jerk[i]; // mj : The max jerk setting for this axis
|
||||
const float jerk = ABS(current_speed[i]); // cs : Starting from zero, change in speed for this axis
|
||||
|
||||
float maxj = max_jerk[i]; // mj : The max jerk setting for this axis
|
||||
|
||||
#ifdef TRAVEL_EXTRA_XYJERK
|
||||
if ((TRAVEL_EXTRA_XYJERK) && !de <= 0 && (i == X_AXIS || i == Y_AXIS))
|
||||
maxj += TRAVEL_EXTRA_XYJERK; // Extra jerk allowance for travel moves
|
||||
#endif
|
||||
|
||||
if (jerk > maxj) { // cs > mj : New current speed too fast?
|
||||
if (limited) { // limited already?
|
||||
const float mjerk = nominal_speed * maxj; // ns*mj
|
||||
|
Reference in New Issue
Block a user