Skip to content

Commit

Permalink
Feedrate on marlin is mm/minute, convert that to mm/s
Browse files Browse the repository at this point in the history
  • Loading branch information
sckunkle authored Feb 5, 2020
1 parent d1a11c7 commit 6912ef6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mbotmake
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def createToolpath(filename, temp):
continue
if line[0] in ['G0', 'G1']:
if len(line) == 2 and line[1][0] == 'F':
axis['feedrate'] = float(line[1][1:])
axis['feedrate'] = float(line[1][1:]) / 60.0
else: # Normal move
for ax in line[1:]:
if ax[0] == 'E':
Expand All @@ -118,7 +118,7 @@ def createToolpath(filename, temp):
elif ax[0] == 'Z':
axis['z'] = float(ax[1:])
elif ax[0] == 'F':
axis['feedrate'] = float(ax[1:])
axis['feedrate'] = float(ax[1:]) / 60.0
processed += generateCommand('move',
{'a': False,
'x': False,
Expand Down

0 comments on commit 6912ef6

Please sign in to comment.