Path: add output precision option to linuxcnc post.

Modified unit tests to use it.
This commit is contained in:
sliptonic
2017-05-31 13:52:50 -05:00
committed by wmayer
parent 78983d9dd2
commit c2d5a63e2d
4 changed files with 70 additions and 59 deletions

View File

@@ -109,6 +109,7 @@ G1X-0.5905Y-0.3937
G0Z0.5
'''
output = '''G0 S3000.000000 X-0.590500 Y-0.393700
M03
G0 Z0.125000
@@ -119,6 +120,8 @@ G1 X-0.590500 Y0.433000
G1 X-0.590500 Y-0.393700
G0 Z0.500000
'''
#create a path directly form a piece of gcode.
p = Path.Path()
p.setFromGCode(lines)