aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/chelper/stepcompress.h
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2020-02-25 12:54:55 -0500
committerKevin O'Connor <kevin@koconnor.net>2020-03-13 21:53:48 -0400
commitacd165cbea2f48812b7fd96c28b81622e5c13665 (patch)
tree0496d4905d40c7cfe8a164a7c8cffd1eab53e8b1 /klippy/chelper/stepcompress.h
parentd86bf0b927b0a56bcef5a2fee98f610884c0d4a5 (diff)
downloadkutter-acd165cbea2f48812b7fd96c28b81622e5c13665.tar.gz
kutter-acd165cbea2f48812b7fd96c28b81622e5c13665.tar.xz
kutter-acd165cbea2f48812b7fd96c28b81622e5c13665.zip
stepcompress: Implement a step+dir+step filter
Some stepper motor drivers do not respond well to rapid "step + direction change + step" events. In particular, it is believed this can cause "over current" events on the tmc2208 drivers when they are in "stealthchop" mode. Detect these events and remove them from the generated step times. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/chelper/stepcompress.h')
-rw-r--r--klippy/chelper/stepcompress.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/klippy/chelper/stepcompress.h b/klippy/chelper/stepcompress.h
index 59f12699..3462b3f8 100644
--- a/klippy/chelper/stepcompress.h
+++ b/klippy/chelper/stepcompress.h
@@ -14,6 +14,7 @@ uint32_t stepcompress_get_oid(struct stepcompress *sc);
int stepcompress_get_step_dir(struct stepcompress *sc);
int stepcompress_append(struct stepcompress *sc, int sdir
, double print_time, double step_time);
+int stepcompress_commit(struct stepcompress *sc);
int stepcompress_reset(struct stepcompress *sc, uint64_t last_step_clock);
int stepcompress_queue_msg(struct stepcompress *sc, uint32_t *data, int len);