Refactor 2

This commit is contained in:
2025-03-31 03:59:45 +03:00
parent 70f1e677d8
commit f14caffb3d
6 changed files with 98 additions and 0 deletions

19
Scripts/ratrig_z-tilt.cfg Normal file
View File

@@ -0,0 +1,19 @@
[gcode_macro Z_TILT_ADJUST]
rename_existing: Z_TILT_ADJUST_ORIG
gcode:
{% if printer["gcode_macro RatOS"].z_probe == 'stowable' %}
DEPLOY_PROBE
{% endif %}
SAVE_GCODE_STATE NAME=STATE_Z_TILT
BED_MESH_CLEAR
{% if not printer.z_tilt.applied %}
Z_TILT_ADJUST_ORIG horizontal_move_z=10 retry_tolerance=1
{% endif %}
Z_TILT_ADJUST_ORIG horizontal_move_z=2
RESTORE_GCODE_STATE NAME=STATE_Z_TILT
{% if printer["gcode_macro RatOS"].z_probe == 'stowable' %}
STOW_PROBE
{% endif %}