Commit 4caabd20 authored by paulusmax's avatar paulusmax

made a minimum step distance for the Gcode exporter to allow configs for...

made a minimum step distance for the Gcode exporter to allow configs for diferent resolution machines.  Also, the Gcode without this was making duplicate entries which causes the machine to stop and start inducing vibrations.  Compare from last point written to gcode.

git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@926 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 6b0fc7a6
......@@ -122,7 +122,7 @@ class GCodeGenerator:
or NewPosition.z - OldPosition.z >= ResLimitZ \
or NewPosition.z - OldPosition.z <= -ResLimitZ:
self.append(self.gcode.cut(pos.x, pos.y, pos.z))
OldPosition = pos
OldPosition = pos
# go back to safety height
self.append(self.gcode.safety())
if self.toggle_spindle_status:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment