aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/chelper/trapq.h
diff options
context:
space:
mode:
Diffstat (limited to 'klippy/chelper/trapq.h')
-rw-r--r--klippy/chelper/trapq.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/klippy/chelper/trapq.h b/klippy/chelper/trapq.h
index e568a1ab..0c81b330 100644
--- a/klippy/chelper/trapq.h
+++ b/klippy/chelper/trapq.h
@@ -22,19 +22,18 @@ struct move {
struct list_node node;
};
-struct move *move_alloc(void);
-void move_fill(struct move *m, double print_time
- , double accel_t, double cruise_t, double decel_t
- , double start_pos_x, double start_pos_y, double start_pos_z
- , double axes_d_x, double axes_d_y, double axes_d_z
- , double start_v, double cruise_v, double accel);
-double move_get_distance(struct move *m, double move_time);
-struct coord move_get_coord(struct move *m, double move_time);
-
struct trapq {
struct list_head moves;
};
+struct move *move_alloc(void);
+void trapq_append(struct trapq *tq, double print_time
+ , double accel_t, double cruise_t, double decel_t
+ , double start_pos_x, double start_pos_y, double start_pos_z
+ , double axes_d_x, double axes_d_y, double axes_d_z
+ , double start_v, double cruise_v, double accel);
+double move_get_distance(struct move *m, double move_time);
+struct coord move_get_coord(struct move *m, double move_time);
struct trapq *trapq_alloc(void);
void trapq_free(struct trapq *tq);
void trapq_add_move(struct trapq *tq, struct move *m);