.gitignore fix
This commit is contained in:
parent
54c16089f4
commit
20e7622cf9
|
@ -1 +0,0 @@
|
|||
/target/
|
|
@ -26,6 +26,7 @@ import javax.swing.text.DefaultCaret;
|
|||
public class GUI extends javax.swing.JFrame {
|
||||
|
||||
private final int zup;
|
||||
private final double unit = 40.2;
|
||||
private int feed;
|
||||
|
||||
private JFileChooser fc;
|
||||
|
@ -40,6 +41,7 @@ public class GUI extends javax.swing.JFrame {
|
|||
setTitle("HPGL to GCode converter v1.0");
|
||||
|
||||
zup = 5;
|
||||
|
||||
feed = 30000;
|
||||
fc = new JFileChooser();
|
||||
|
||||
|
@ -216,7 +218,7 @@ public class GUI extends javax.swing.JFrame {
|
|||
if (lines[i].contains("PA")) {
|
||||
int x = Integer.parseInt(lines[i].replace("PA ", "").replace(";", "").split(",")[0]);
|
||||
int y = Integer.parseInt(lines[i].replace("PA ", "").replace(";", "").split(",")[1]);
|
||||
appendGCODE("G1 X"+x+" Y"+y+" F"+feed);
|
||||
appendGCODE("G1 X"+x/unit+" Y"+y/unit+" F"+feed);
|
||||
}
|
||||
else if (lines[i].contains("PU")) {
|
||||
appendGCODE("M5 F"+feed);
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,5 +1,5 @@
|
|||
#Generated by Maven
|
||||
#Sun Jan 15 14:49:48 CET 2017
|
||||
#Sun Jan 15 15:02:51 CET 2017
|
||||
version=1.0
|
||||
groupId=info.moow
|
||||
artifactId=HPGL2GCODE
|
||||
|
|
Loading…
Reference in New Issue