aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/chelper/__init__.py
diff options
context:
space:
mode:
authorFrancois Chagnon <fc@francoischagnon.net>2023-12-30 11:34:21 -0500
committerGitHub <noreply@github.com>2023-12-30 11:34:21 -0500
commitd7f6348ae6e45e4b566d10974b10ab4bb111222b (patch)
tree8499e6a9404c0240f44a70f15d4c547db498d993 /klippy/chelper/__init__.py
parentb502558052f40339baa04fcfcbbeb65aa77dc1d8 (diff)
downloadkutter-d7f6348ae6e45e4b566d10974b10ab4bb111222b.tar.gz
kutter-d7f6348ae6e45e4b566d10974b10ab4bb111222b.tar.xz
kutter-d7f6348ae6e45e4b566d10974b10ab4bb111222b.zip
toolhead: Keep stepcompress move history relative to current time (#6439)
Expire history relative to current time rather than last move in history queue Signed-off-by: Francois Chagnon <fc@francoischagnon.net>
Diffstat (limited to 'klippy/chelper/__init__.py')
-rw-r--r--klippy/chelper/__init__.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/klippy/chelper/__init__.py b/klippy/chelper/__init__.py
index 290234c5..e4199561 100644
--- a/klippy/chelper/__init__.py
+++ b/klippy/chelper/__init__.py
@@ -60,7 +60,8 @@ defs_stepcompress = """
void steppersync_free(struct steppersync *ss);
void steppersync_set_time(struct steppersync *ss
, double time_offset, double mcu_freq);
- int steppersync_flush(struct steppersync *ss, uint64_t move_clock);
+ int steppersync_flush(struct steppersync *ss, uint64_t move_clock
+ , uint64_t clear_history_clock);
"""
defs_itersolve = """
@@ -94,7 +95,8 @@ defs_trapq = """
, double start_pos_x, double start_pos_y, double start_pos_z
, double axes_r_x, double axes_r_y, double axes_r_z
, double start_v, double cruise_v, double accel);
- void trapq_finalize_moves(struct trapq *tq, double print_time);
+ void trapq_finalize_moves(struct trapq *tq, double print_time
+ , double clear_history_time);
void trapq_set_position(struct trapq *tq, double print_time
, double pos_x, double pos_y, double pos_z);
int trapq_extract_old(struct trapq *tq, struct pull_move *p, int max