diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2020-02-25 12:54:55 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2020-03-13 21:53:48 -0400 |
commit | acd165cbea2f48812b7fd96c28b81622e5c13665 (patch) | |
tree | 0496d4905d40c7cfe8a164a7c8cffd1eab53e8b1 /klippy/chelper/stepcompress.h | |
parent | d86bf0b927b0a56bcef5a2fee98f610884c0d4a5 (diff) | |
download | kutter-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.h | 1 |
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); |