fix first XY / Z moves to take into account Z over or under currenet position
This commit is contained in:
parent
0c18d465dd
commit
69d2d4766b
1 changed files with 9 additions and 0 deletions
|
|
@ -211,6 +211,14 @@ CAM.export = function(print, online) {
|
|||
if (points === 0) {
|
||||
pos.x = pos.y = pos.z = 0;
|
||||
points++;
|
||||
if (newpos.z > pos.z)
|
||||
moveTo({
|
||||
// speed: Infinity,
|
||||
tool: out.tool,
|
||||
point: { x: newpos.x, y: newpos.y, z: newpos.z, a: newpos.a }
|
||||
}, {
|
||||
dx: 0, dy: 0, dz: 1, time: 0
|
||||
});
|
||||
moveTo({
|
||||
// speed: Infinity,
|
||||
tool: out.tool,
|
||||
|
|
@ -218,6 +226,7 @@ CAM.export = function(print, online) {
|
|||
}, {
|
||||
dx: 1, dy: 1, dz: 0, time: 0
|
||||
});
|
||||
if (newpos.z < pos.z)
|
||||
moveTo({
|
||||
// speed: Infinity,
|
||||
tool: out.tool,
|
||||
|
|
|
|||
Loading…
Reference in a new issue