menu: New Tune submenu (#653)

Signed-off-by: Janar Sööt <janar.soot@gmail.com>
This commit is contained in:
Janar Sööt 2018-09-17 15:26:59 +03:00 committed by KevinOConnor
parent f7f78433a2
commit 7b6a44e8f9
1 changed files with 45 additions and 0 deletions

View File

@ -8,6 +8,7 @@
type: list type: list
name: Main Menu name: Main Menu
items: items:
__tune
__octoprint __octoprint
__sdcard __sdcard
__control __control
@ -16,6 +17,50 @@ items:
__prepare __prepare
__test __test
### menu tune ###
[menu __tune]
type: list
enable: toolhead.is_printing
name: Tune
items:
.__speed
.__flow
.__offsetz
[menu __tune __speed]
type: input
name: "Speed: {1:3d}%"
parameter: gcode.speed_factor
transform:
map(0,2,0,200)
input_min: 0
input_max: 2
input_step: 0.01
realtime: true
gcode: M220 S{1:d}
[menu __tune __flow]
type: input
name: "Flow: {1:3d}%"
parameter: gcode.extrude_factor
transform:
map(0,2,0,200)
input_min: 0
input_max: 2
input_step: 0.01
realtime: true
gcode: M221 S{1:d}
[menu __tune __offsetz]
type: input
name: "Offset Z:{0:05.3f} "
parameter: gcode.homing_zpos
input_min: -5
input_max: 5
input_step: 0.005
realtime: true
gcode: SET_GCODE_OFFSET Z={0:.3f}
### menu octoprint ### ### menu octoprint ###
[menu __octoprint] [menu __octoprint]
type: list type: list