mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-08-09 14:55:09 -06:00
trapq: Keep history of recent trapq moves
Store trapq moves in a separate "history" list after each move is nominally expired. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
e2f483aea3
commit
45c232b2c7
3 changed files with 71 additions and 4 deletions
|
@ -68,6 +68,13 @@ defs_itersolve = """
|
|||
"""
|
||||
|
||||
defs_trapq = """
|
||||
struct pull_move {
|
||||
double print_time, move_t;
|
||||
double start_v, accel;
|
||||
double start_x, start_y, start_z;
|
||||
double x_r, y_r, z_r;
|
||||
};
|
||||
|
||||
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
|
||||
|
@ -76,6 +83,8 @@ defs_trapq = """
|
|||
struct trapq *trapq_alloc(void);
|
||||
void trapq_free(struct trapq *tq);
|
||||
void trapq_finalize_moves(struct trapq *tq, double print_time);
|
||||
int trapq_extract_old(struct trapq *tq, struct pull_move *p, int max
|
||||
, double start_time, double end_time);
|
||||
"""
|
||||
|
||||
defs_kin_cartesian = """
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue