Commit b92c797d authored by Guillaume Seguin's avatar Guillaume Seguin

Store current feedrate in GCoder

parent 1ea9fe19
......@@ -119,6 +119,8 @@ class GCode(object):
current_z = 0
# For E this is the absolute position from machine start
current_e = 0
# Current feedrate
current_f = 0
# Offset: current offset between the machine origin and the machine current
# absolute coordinate system (as shifted by G92s)
offset_x = 0
......@@ -256,6 +258,9 @@ class GCode(object):
y = line.y
z = line.z
if line.f is not None:
self.current_f = line.f
if line.relative:
x = current_x + (x or 0)
y = current_y + (y or 0)
......
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