aboutsummaryrefslogtreecommitdiffstats
path: root/test/klippy/exclude_object.test
diff options
context:
space:
mode:
authorFrank Tackitt <im@frank.af>2022-03-01 13:04:08 -0700
committerKevinOConnor <kevin@koconnor.net>2022-06-03 14:12:04 -0400
commit89c59b035e93e87d2fc22010d7030dc86434ce03 (patch)
treea9c4f9573c19cf555c2dfd6eb6b5023158ec10ec /test/klippy/exclude_object.test
parent04952db1e8806a5efe27771d568ce66e9eb126f9 (diff)
downloadkutter-89c59b035e93e87d2fc22010d7030dc86434ce03.tar.gz
kutter-89c59b035e93e87d2fc22010d7030dc86434ce03.tar.xz
kutter-89c59b035e93e87d2fc22010d7030dc86434ce03.zip
exclude_objects: initial implementation
Adding Klipper functionality to support cancelling objects while printing. This module keeps track of motion in and out of objects and adjusts movements as needed. It also tracks object status and provides that to clients. The Klipper module is relatively simple, and only provides one piece of the workflow. Moonraker already supports processing uploaded files to insert the required gcode markers for cancelling objects, using https://github.com/kageurufu/cancelobject-preprocessor. This library is also available as an executable for use in slicers, and pip installations also include the script as a callable. Mainsail has integrated support, and code changes for Fluidd are available. Support in other interfaces is planned, and we've spoken to several other developers about integrating frontend support in their projects. Signed-off-by: Troy Jacobson <troy.d.jacobson@gmail.com> Co-authored-by: Franklyn Tackitt <git@frank.af> Co-authored-by: Eric Callahan <arksine.code@gmail.com>
Diffstat (limited to 'test/klippy/exclude_object.test')
-rw-r--r--test/klippy/exclude_object.test126
1 files changed, 126 insertions, 0 deletions
diff --git a/test/klippy/exclude_object.test b/test/klippy/exclude_object.test
new file mode 100644
index 00000000..9abcc45e
--- /dev/null
+++ b/test/klippy/exclude_object.test
@@ -0,0 +1,126 @@
+DICTIONARY atmega2560.dict
+CONFIG exclude_object.cfg
+
+
+G28
+M83
+
+M486 T3
+
+M486 S0
+ G0 X10
+
+M486 S-1
+ G0 X0
+
+M486 S1
+ G0 X11
+M486 C
+
+# "Prime" the transform
+G1 X140 E0.5
+G1 X160 E0.5
+G1 X140 E0.5
+G1 X160 E0.5
+G1 X140 E0.5
+G1 X160 E0.5
+G1 X140 E0.5
+
+M486 S-1
+ G0 X0
+
+M486 S2
+ G0 X13
+
+M486 S0
+ G0 X10
+
+M486 S-1
+ G0 X0
+
+M486 S1
+ G0 X-11
+
+M486 S-1
+ G0 X0
+
+M486 S2
+ G0 X13
+
+M486 P2
+EXCLUDE_OBJECT
+
+M486 S0
+ G0 X10
+
+M486 S-1
+ G0 X0
+
+M486 S1
+ G0 X-11
+
+M486 S-1
+ G0 X0
+
+M486 S2
+ G0 X-13
+
+M486 U2
+EXCLUDE_OBJECT
+
+M486 S0
+ G0 X10
+
+M486 S-1
+ G0 X0
+
+M486 S1
+ G0 X-11
+
+M486 S-1
+ G0 X0
+
+M486 S2
+ G0 X13
+
+M486 P0
+M486 P1
+M486 P2
+EXCLUDE_OBJECT
+
+M486 S0
+ G0 X-10
+
+M486 S-1
+ G0 X0
+
+M486 S1
+ G0 X-11
+
+M486 S-1
+ G0 X0
+
+M486 S2
+ G0 X-13
+
+
+M486 S66
+ G0 X66
+
+M486 S-1
+ G0 X0
+ M486 P66
+
+M486 S66
+ G0 X-66
+
+M486 T3
+
+M486 S0
+ G0 X10
+
+M486 S1
+ G0 X11
+
+M486 S2
+ G0 X13