Skip to content
Snippets Groups Projects
Commit 047c7987 authored by Thomas Oster's avatar Thomas Oster
Browse files

re-fix inverted y axis

parent 681177e1
Branches
Tags
No related merge requests found
......@@ -134,7 +134,7 @@ public class IModelaMill extends LaserCutter
moveHead(out, movedepth);
//TODO: check if last command was also move and lies on the
//same line. If so, replace the last move command
out.print(String.format(Locale.ENGLISH, "G00 X%f Y%f%s\n", x, y, parameters));
out.print(String.format(Locale.ENGLISH, "G00 X%f Y%f%s\n", x, getBedHeight()-y, parameters));
parameters = "";
}
......@@ -143,7 +143,7 @@ public class IModelaMill extends LaserCutter
moveHead(out, linedepth);
//TODO: check if last command was also line and lies on the
//same line. If so, replace the last move command
out.print(String.format(Locale.ENGLISH, "G01 X%f Y%f%s\n", x, y, parameters));
out.print(String.format(Locale.ENGLISH, "G01 X%f Y%f%s\n", x, getBedHeight()-y, parameters));
parameters = "";
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment