complete line type support

This commit is contained in:
Stewart Allen 2020-11-12 12:15:39 -05:00
commit ed0a831332
8 changed files with 39 additions and 32 deletions

View file

@ -129,7 +129,7 @@
const output = scope.output = [ seq ];
function G0G1(moving, line) {
function G0G1(g0, line) {
const mov = {};
line.forEach(function(tok) {
if (abs) {
@ -157,6 +157,8 @@
factor * pos.Z + off.Z + xoff.Z + dz
);
const moving = g0 || (fdm && pos.E <= 0);
// always add moves to the current sequence
if (moving) {
addOutput(seq, point, false, pos.F, tool);
@ -218,7 +220,7 @@
G0G1(true, line);
break;
case 'G1':
G0G1(fdm ? pos.E <= 0 : false, line);
G0G1(false, line);
break;
case 'M6':
break;