trapq: Rename trapq_free_moves() to trapq_finalize_moves()
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
@@ -75,7 +75,7 @@ defs_trapq = """
|
||||
, double start_v, double cruise_v, double accel);
|
||||
struct trapq *trapq_alloc(void);
|
||||
void trapq_free(struct trapq *tq);
|
||||
void trapq_free_moves(struct trapq *tq, double print_time);
|
||||
void trapq_finalize_moves(struct trapq *tq, double print_time);
|
||||
"""
|
||||
|
||||
defs_kin_cartesian = """
|
||||
|
||||
@@ -157,9 +157,9 @@ trapq_add_move(struct trapq *tq, struct move *m)
|
||||
tail_sentinel->print_time = 0.;
|
||||
}
|
||||
|
||||
// Free any moves older than `print_time` from the trapezoid velocity queue
|
||||
// Expire any moves older than `print_time` from the trapezoid velocity queue
|
||||
void __visible
|
||||
trapq_free_moves(struct trapq *tq, double print_time)
|
||||
trapq_finalize_moves(struct trapq *tq, double print_time)
|
||||
{
|
||||
struct move *head_sentinel = list_first_entry(&tq->moves, struct move,node);
|
||||
struct move *tail_sentinel = list_last_entry(&tq->moves, struct move, node);
|
||||
|
||||
@@ -36,6 +36,6 @@ struct trapq *trapq_alloc(void);
|
||||
void trapq_free(struct trapq *tq);
|
||||
void trapq_check_sentinels(struct trapq *tq);
|
||||
void trapq_add_move(struct trapq *tq, struct move *m);
|
||||
void trapq_free_moves(struct trapq *tq, double print_time);
|
||||
void trapq_finalize_moves(struct trapq *tq, double print_time);
|
||||
|
||||
#endif // trapq.h
|
||||
|
||||
Reference in New Issue
Block a user