From d23ca4557a00680ac02bb1890617a1640f0d90da Mon Sep 17 00:00:00 2001 From: alfrix Date: Tue, 16 Apr 2024 14:02:03 -0300 Subject: [PATCH] zcalibrate: add support for axis twist compensation --- panels/zcalibrate.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/panels/zcalibrate.py b/panels/zcalibrate.py index 78379fad..56c58e00 100644 --- a/panels/zcalibrate.py +++ b/panels/zcalibrate.py @@ -133,6 +133,9 @@ class Panel(ScreenPanel): # Since probes may not be accturate enough for deltas, always show the manual method self._add_button("Delta Manual", "delta_manual", pobox) functions.append("delta_manual") + if "AXIS_TWIST_COMPENSATION_CALIBRATE" in self._printer.available_commands: + self._add_button("Axis Twist Compensation", "axis_twist", pobox) + functions.append("axis_twist") self.labels['popover'].add(pobox) if len(functions) > 1: @@ -173,6 +176,8 @@ class Panel(ScreenPanel): self._screen._ws.klippy.gcode_script("DELTA_CALIBRATE METHOD=manual") elif method == "endstop": self._screen._ws.klippy.gcode_script("Z_ENDSTOP_CALIBRATE") + elif method == "axis_twist": + self._screen._ws.klippy.gcode_script("AXIS_TWIST_COMPENSATION_CALIBRATE") def _move_to_position(self, x, y): if not x or not y: