clamped safe speed to 100% of nominal speed. Fixes a problem that might have spelled trouble at very low feed rates
This commit is contained in:
parent
2ff680a125
commit
b8eee5ac9a
@ -168,7 +168,11 @@ inline double junction_jerk(block_t *before, block_t *after) {
|
|||||||
// Calculate a braking factor to reach baseline speed which is max_jerk/2, e.g. the
|
// Calculate a braking factor to reach baseline speed which is max_jerk/2, e.g. the
|
||||||
// speed under which you cannot exceed max_jerk no matter what you do.
|
// speed under which you cannot exceed max_jerk no matter what you do.
|
||||||
double factor_for_safe_speed(block_t *block) {
|
double factor_for_safe_speed(block_t *block) {
|
||||||
|
if(settings.max_jerk < block->nominal_speed) {
|
||||||
return(settings.max_jerk/block->nominal_speed);
|
return(settings.max_jerk/block->nominal_speed);
|
||||||
|
} else {
|
||||||
|
return(1.0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// The kernel called by planner_recalculate() when scanning the plan from last to first entry.
|
// The kernel called by planner_recalculate() when scanning the plan from last to first entry.
|
||||||
|
Loading…
Reference in New Issue
Block a user