diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2019-10-29 12:44:39 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2019-11-06 15:51:51 -0500 |
commit | 1acaaa98c21af0a2a2cff725365dfda0ff4b7204 (patch) | |
tree | 601ce8a29fb24f7b4b83368c120c386563d2ff1b /klippy/chelper/trapq.h | |
parent | 797dcfcb1218194077d37dd53575c19c4af710c5 (diff) | |
download | kutter-1acaaa98c21af0a2a2cff725365dfda0ff4b7204.tar.gz kutter-1acaaa98c21af0a2a2cff725365dfda0ff4b7204.tar.xz kutter-1acaaa98c21af0a2a2cff725365dfda0ff4b7204.zip |
trapq: Remove move_fill()
Now that all callers use the trapq system to queue moves, it is no
longer necessary to individually allocate and fill a 'struct move'.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/chelper/trapq.h')
-rw-r--r-- | klippy/chelper/trapq.h | 17 |
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); |