fix drill NaN emit, up/over re-plunge speeds

This commit is contained in:
Stewart Allen 2025-09-03 20:08:45 -04:00
commit 0c50236dc1
2 changed files with 12 additions and 5 deletions

View file

@ -274,6 +274,9 @@ export function cam_export(print, online) {
dist = Math.sqrt(dx * dx + dy * dy + dz * dz),
newFeed = feed && feed !== pos.f;
// catch NaN in debugging
// if (nl.length === 0 || nl[0] === undefined)
// console.log(out, nl.length, ...nl);
// drop dup points (all deltas are 0)
if (!arc && !(dx || dy || dz || da)) {