aboutsummaryrefslogtreecommitdiffstats
path: root/test/klippy/extruders.test
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2022-01-29 19:13:31 -0500
committerKevin O'Connor <kevin@koconnor.net>2022-02-10 13:24:21 -0500
commit9ec97424844c76bbc0c5604e15aa195282b6c955 (patch)
treeff05667b33edfff52b86768ed962e5c0f4e597df /test/klippy/extruders.test
parent189188e3ca3e40d8272fb4ad48316e329f8ec453 (diff)
downloadkutter-9ec97424844c76bbc0c5604e15aa195282b6c955.tar.gz
kutter-9ec97424844c76bbc0c5604e15aa195282b6c955.tar.xz
kutter-9ec97424844c76bbc0c5604e15aa195282b6c955.zip
extruder: Add support for reversing the direction of extruder stepper movement
Extend SET_EXTRUDER_ROTATION_DISTANCE to support reversing the direction of extruder movement. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'test/klippy/extruders.test')
-rw-r--r--test/klippy/extruders.test6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/klippy/extruders.test b/test/klippy/extruders.test
index ff7c5917..889d5e34 100644
--- a/test/klippy/extruders.test
+++ b/test/klippy/extruders.test
@@ -13,9 +13,13 @@ G1 X20 Y20 Z1
G1 X25 Y25 E7.5
# Update step_distance
-SET_EXTRUDER_STEP_DISTANCE EXTRUDER=extruder DISTANCE=.005
+SET_EXTRUDER_ROTATION_DISTANCE EXTRUDER=extruder DISTANCE=33.2
G1 X30 Y30 E8.0
+# Reverse step_distance
+SET_EXTRUDER_ROTATION_DISTANCE EXTRUDER=extruder DISTANCE=-33.1
+G1 X30 Y30 E8.2
+
# Disable extruder stepper motor
SYNC_STEPPER_TO_EXTRUDER STEPPER=extruder EXTRUDER=
G1 X35 Y35 E8.5