aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/chelper/trapq.h
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2019-11-04 18:48:51 -0500
committerKevin O'Connor <kevin@koconnor.net>2019-11-21 13:17:45 -0500
commitda06e185fbcf120a73458018116af38576689496 (patch)
treea8a8d5e686b12cd7953865650c9816cd319d3113 /klippy/chelper/trapq.h
parenta28b29993ad76a1beb7be4206f62c5694ede2248 (diff)
downloadkutter-da06e185fbcf120a73458018116af38576689496.tar.gz
kutter-da06e185fbcf120a73458018116af38576689496.tar.xz
kutter-da06e185fbcf120a73458018116af38576689496.zip
trapq: Add trapq_find_move() function
Add support for finding a move by time in the trapezoidal velocity move list. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/chelper/trapq.h')
-rw-r--r--klippy/chelper/trapq.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/klippy/chelper/trapq.h b/klippy/chelper/trapq.h
index fa55faaf..14da9ee9 100644
--- a/klippy/chelper/trapq.h
+++ b/klippy/chelper/trapq.h
@@ -33,6 +33,7 @@ void trapq_append(struct trapq *tq, double print_time
double move_get_distance(struct move *m, double move_time);
struct coord move_get_coord(struct move *m, double move_time);
double trapq_integrate(struct move *m, int axis, double start, double end);
+struct move *trapq_find_move(struct move *m, double *ptime);
struct trapq *trapq_alloc(void);
void trapq_free(struct trapq *tq);
void trapq_check_sentinels(struct trapq *tq);