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

Merge pull request #38 from madleech/turn-laser-off-during-moves

Turn laser off when doing G0 rapids
parents 452e8337 4bc3e955
No related branches found
No related tags found
No related merge requests found
......@@ -362,7 +362,8 @@ public class GenericGcodeDriver extends LaserCutter {
x = isFlipXaxis() ? getBedWidth() - Util.px2mm(x, resolution) : Util.px2mm(x, resolution);
y = isFlipYaxis() ? getBedHeight() - Util.px2mm(y, resolution) : Util.px2mm(y, resolution);
currentSpeed = getTravel_speed();
sendLine("G0 X%f Y%f F%d", x, y, (int) (travel_speed));
currentPower = 0.0;
sendLine("G0 X%f Y%f S0 F%d", x, y, (int) (travel_speed));
}
protected void line(PrintStream out, double x, double y, double resolution) throws IOException {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment