better log output

This commit is contained in:
Teja 2015-02-19 15:01:41 +01:00
parent a123a81783
commit b8dcb0c8a4

View file

@ -809,7 +809,8 @@
sb += "Radius to end of arc differs from radius to start:\n";
sb += "r1=" + radius + "\n";
sb += "r2=" + r2 + "\n";
console.error("Worker.js convertG2G3", sb);
var command = (clockwise ? 'G2' : 'G3') + ' X' + x + ' Y' + y + ' Z' + z + ' I' + i + ' J' + j + ' p' + p
console.error("Worker.js convertG2G3", sb, " command was: ", command, " lastPos: ", lastPos);
}
// this is the real line calculation.