fix plunge (similar to 2.4 fix)

This commit is contained in:
Stewart Allen 2020-12-27 20:01:56 -05:00
commit 55fdabd906

View file

@ -312,11 +312,11 @@
}
}
// synth new plunge rate
if (synthPlunge && deltaZ <= -tolerance) {
// set new plunge rate
if (deltaZ < -tolerance) {
let threshold = Math.min(deltaXY / 2, absDeltaZ),
modifier = threshold / absDeltaZ;
if (threshold && modifier && deltaXY > tolerance) {
if (synthPlunge && threshold && modifier && deltaXY > tolerance) {
// use modifier to speed up long XY move plunge rates
rate = Math.round(plungeRate + ((feedRate - plungeRate) * modifier));
} else {