fix plunge (similar to 2.4 fix)
This commit is contained in:
parent
19f9299055
commit
55fdabd906
1 changed files with 3 additions and 3 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue