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-04 19:43:47 -0500 |
commit | c9cb462f90a68deb73cacb179f7bbcde2cb9aeed (patch) | |
tree | e0167b9334f65dd43181472422649cb44d2df2ba /klippy/chelper/itersolve.h | |
parent | 8f8c1e2c587a8e4bc88524774ea6fd49139fd08a (diff) | |
download | kutter-c9cb462f90a68deb73cacb179f7bbcde2cb9aeed.tar.gz kutter-c9cb462f90a68deb73cacb179f7bbcde2cb9aeed.tar.xz kutter-c9cb462f90a68deb73cacb179f7bbcde2cb9aeed.zip |
itersolve: 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/itersolve.h')
-rw-r--r-- | klippy/chelper/itersolve.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/klippy/chelper/itersolve.h b/klippy/chelper/itersolve.h index adb48055..40ecafa6 100644 --- a/klippy/chelper/itersolve.h +++ b/klippy/chelper/itersolve.h @@ -16,6 +16,9 @@ struct stepper_kinematics { double step_dist, commanded_pos; struct stepcompress *sc; + double next_move_print_time, next_step_time; + int next_step_dir; + double last_flush_time, last_move_time; struct trapq *tq; int active_flags; |