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>
This commit is contained in:
Kevin O'Connor
2025-03-21 23:04:46 -04:00
parent d40fd2190d
commit 7201f41664
3 changed files with 83 additions and 1 deletions

View File

@@ -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