reduce move jupm tolerance for ball and taper mills

This commit is contained in:
Stewart Allen 2020-12-09 10:04:20 -05:00
commit 6de75a5172

View file

@ -121,7 +121,7 @@
tool = new CAM.Tool(settings, toolID); tool = new CAM.Tool(settings, toolID);
toolType = tool.getType(); toolType = tool.getType();
toolDiam = tool.fluteDiameter(); toolDiam = tool.fluteDiameter();
toolDiamMove = toolType === 'endmill' ? toolDiam : tolerance; toolDiamMove = toolType === 'endmill' ? toolDiam : tolerance * 2;
lastTool = toolID; lastTool = toolID;
} }
feedRate = feed; feedRate = feed;
@ -259,7 +259,7 @@
} }
} else if (isMove) { } else if (isMove) {
// for longer moves, check the terrain to see if we need to go up and over // for longer moves, check the terrain to see if we need to go up and over
const bigXY = (deltaXY > toolDiam); const bigXY = (deltaXY > toolDiamMove);
const bigZ = (deltaZ > toolDiam/2 && deltaXY > tolerance); const bigZ = (deltaZ > toolDiam/2 && deltaXY > tolerance);
const midZ = (absDeltaZ >= tolerance); const midZ = (absDeltaZ >= tolerance);
if ((bigXY || bigZ) && (isMove || midZ)) { if ((bigXY || bigZ) && (isMove || midZ)) {