aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2022-01-11 18:13:21 -0500
committerKevin O'Connor <kevin@koconnor.net>2022-01-16 19:01:15 -0500
commit02d5f9754fc7f9e493c8bc5a6418e2a9ea9d7ae1 (patch)
tree08728bbdda7fbf0ac4574e7dfd9902b35677a520 /test
parenteb2a67cb956f96e9ed92d5c070411d7dec08bcfd (diff)
downloadkutter-02d5f9754fc7f9e493c8bc5a6418e2a9ea9d7ae1.tar.gz
kutter-02d5f9754fc7f9e493c8bc5a6418e2a9ea9d7ae1.tar.xz
kutter-02d5f9754fc7f9e493c8bc5a6418e2a9ea9d7ae1.zip
extruder: Support disassociating a stepper from all extruders
Support SYNC_STEPPER_TO_EXTRUDER commands with an EXTRUDER parameter set to an empty string. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'test')
-rw-r--r--test/klippy/extruders.test29
1 files changed, 29 insertions, 0 deletions
diff --git a/test/klippy/extruders.test b/test/klippy/extruders.test
index 22dc6ab5..ff7c5917 100644
--- a/test/klippy/extruders.test
+++ b/test/klippy/extruders.test
@@ -15,3 +15,32 @@ G1 X25 Y25 E7.5
# Update step_distance
SET_EXTRUDER_STEP_DISTANCE EXTRUDER=extruder DISTANCE=.005
G1 X30 Y30 E8.0
+
+# Disable extruder stepper motor
+SYNC_STEPPER_TO_EXTRUDER STEPPER=extruder EXTRUDER=
+G1 X35 Y35 E8.5
+
+# Disable my_extra_stepper stepper motor
+SYNC_STEPPER_TO_EXTRUDER STEPPER=my_extra_stepper EXTRUDER=
+G1 X40 Y40 E9.0
+
+# Enable extruder stepper motor
+SYNC_STEPPER_TO_EXTRUDER STEPPER=extruder EXTRUDER=extruder
+G1 X45 Y45 E9.5
+
+# Switch to just my_extra_stepper stepper motor
+SYNC_STEPPER_TO_EXTRUDER STEPPER=extruder EXTRUDER=
+SYNC_STEPPER_TO_EXTRUDER STEPPER=my_extra_stepper EXTRUDER=extruder
+G1 X50 Y50 E10.0
+
+# Test pressure advance move
+SET_PRESSURE_ADVANCE EXTRUDER=my_extra_stepper ADVANCE=0.020
+G1 X55 Y55 E0
+G1 X55 Y55 E0.5
+G1 X60 Y60 E1.1
+G1 X50 Y50
+SET_PRESSURE_ADVANCE EXTRUDER=extruder ADVANCE=0.025
+G1 X55 Y55 E1.5
+G1 X50 Y50
+G1 X55 Y55 E2.0
+G1 X50 Y50