menu: Added new z-offset calibration menu

Signed-off-by: Jeff Perando <jeffperando@gmail.com>
This commit is contained in:
Jeff Perando 2026-02-05 15:37:15 -08:00
parent 4c89f7f826
commit 8cdeb15572

View file

@ -133,7 +133,6 @@ realtime: True
gcode:
SET_GCODE_OFFSET Z={'%.3f' % menu.input} MOVE=1
### menu octoprint ###
[menu __main __octoprint]
type: list
@ -702,6 +701,65 @@ gcode: PID_CALIBRATE HEATER=heater_bed TARGET=60 WRITE_FILE=1
type: list
name: Calibration
[menu __main __setup __calib __offsetz]
type: list
enable: {((not printer.idle_timeout.state == "Printing") and ('stepper_z' in printer.configfile.config))}
name: Z-Offset
[menu __main __setup __calib __offsetz __begin_probe]
type: command
name: Begin probe calibration
enable: {('probe' in printer) or ('bltouch' in printer)}
gcode:
ABORT
G28
PROBE_CALIBRATE
[menu __main __setup __calib __offsetz __begin_endstop]
type: command
name: Begin Z-endstop calibration
enable: {('position_endstop' in printer.configfile.config.stepper_z)}
gcode:
ABORT
G28
Z_ENDSTOP_CALIBRATE
[menu __main __setup __calib __offsetz __test]
type: input
name: Delta: {'%05.3f' % menu.input}
input: 0
input_min: -5
input_max: 5
input_step: 0.005
gcode:
{%- if menu.input > 0 -%}
TESTZ Z=+{'%.3f' % menu.input}
{%- elif menu.input < 0 -%}
TESTZ Z={'%.3f' % menu.input}
{%- endif -%}
[menu __main __setup __calib __offsetz __prev]
type: command
name: Undo
gcode: TESTZ Z=--
[menu __main __setup __calib __offsetz __next]
type: command
name: Redo
gcode: TESTZ Z=++
[menu __main __setup __calib __offsetz __abort]
type: command
name: Cancel
gcode: ABORT
[menu __main __setup __calib __offsetz __end]
type: command
name: Finish
gcode:
ACCEPT
SAVE_CONFIG
[menu __main __setup __calib __delta_calib_auto]
type: command
enable: {(not printer.idle_timeout.state == "Printing") and ('delta_calibrate' in printer)}