aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2025-03-21 23:04:46 -0400
committerKevin O'Connor <kevin@koconnor.net>2025-05-12 20:15:03 -0400
commit7201f41664ffa658e90146187ce57ad70b71d11c (patch)
tree3bec429048d8f80d6d342cbe3bc6b30329e0c50d /test
parentd40fd2190d740cf5388299e7f803a9790108a2dd (diff)
downloadkutter-7201f41664ffa658e90146187ce57ad70b71d11c.tar.gz
kutter-7201f41664ffa658e90146187ce57ad70b71d11c.tar.xz
kutter-7201f41664ffa658e90146187ce57ad70b71d11c.zip
manual_stepper: Support registering as an additional axis
Add a new G-Code command that can register a manual_stepper as an additional axis on standard G-Code G1 commands. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'test')
-rw-r--r--test/klippy/manual_stepper.test15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/klippy/manual_stepper.test b/test/klippy/manual_stepper.test
index af0d406a..d19c39c5 100644
--- a/test/klippy/manual_stepper.test
+++ b/test/klippy/manual_stepper.test
@@ -22,3 +22,18 @@ M84
# Verify stepper_buzz
STEPPER_BUZZ STEPPER="manual_stepper basic_stepper"
STEPPER_BUZZ STEPPER="manual_stepper homing_stepper"
+
+# Register with g-code
+MANUAL_STEPPER STEPPER=basic_stepper GCODE_AXIS=A
+G28
+G1 X20 Y20 Z10
+G1 A10 X22
+
+# Test unregistering
+MANUAL_STEPPER STEPPER=basic_stepper GCODE_AXIS=
+G1 X15
+
+# Test registering again
+G28
+MANUAL_STEPPER STEPPER=basic_stepper GCODE_AXIS=A
+G1 X20 Y20 Z10 A20