Create gcode file from image with arguments

#38-Create GCode from image
closes #38
This commit is contained in:
Marc-Antoine Lafreniere
2019-02-21 13:41:08 -05:00
parent e842141e59
commit f5599ce4b7
4 changed files with 20 additions and 14 deletions

View File

@@ -14,7 +14,7 @@ def listToGCode(listIndex, pHeight, pWidth):
gcodeCommand.append('G0 Z0')
toolUp = True
else:
gcodeCommand.append('G0 X' + str(coord.getX()*pWidth) + ' Y' + str(coord.getY()*pHeight))
gcodeCommand.append('G0 X' + str(round(coord.getX()*pWidth, 2)) + ' Y' + str(round(coord.getY()*pHeight, 2)))
if toolUp:
gcodeCommand.append('G0 Z3')
toolUp = False