Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions resources/scripts/SpeedTower.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def getSettingDataString(self):
"jerk": "Jerk",
"junction": "Junction Deviation",
"marlinadv": "Marlin Linear",
"marlinadv2": "Marlin M493 K",
"rrfpresure": "RepRap Pressure"
},
"default_value": "acceleration"
Expand Down Expand Up @@ -150,6 +151,9 @@ def execute(self, data):
if (Instruction=='marlinadv'):
Command = "M900 K{:.3f}".format(float(CurrentValue))
lcd_gcode = "M117 Linear Advance K{:.3f}".format(float(CurrentValue))
if (Instruction=='marlinadv2'):
Command = "M493 K{:.6f}".format(float(CurrentValue)/1000)
lcd_gcode = "M117 Linear Advance K{:.3f}".format(float(CurrentValue))
if (Instruction=='rrfpresure'):
Command = "M572 D0 S{:.3f}".format(float(CurrentValue))
lcd_gcode = "M117 Pressure Advance S{:.3f}".format(float(CurrentValue))
Expand All @@ -176,6 +180,9 @@ def execute(self, data):
if (Instruction=='marlinadv'):
Command = "M900 K{:.3f}".format(float(CurrentValue))
lcd_gcode = "M117 Linear Advance K{:.3f}".format(float(CurrentValue))
if (Instruction=='marlinadv2'):
Command = "M493 K{:.6f}".format(float(CurrentValue)/1000)
lcd_gcode = "M117 Linear Advance K{:.3f}".format(float(CurrentValue))
if (Instruction=='rrfpresure'):
Command = "M572 D0 S{:.3f}".format(float(CurrentValue))
lcd_gcode = "M117 Pressure Advance S{:.3f}".format(float(CurrentValue))
Expand Down