diff options
Diffstat (limited to 'klippy/chelper/kin_extruder.c')
-rw-r--r-- | klippy/chelper/kin_extruder.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/klippy/chelper/kin_extruder.c b/klippy/chelper/kin_extruder.c index 26513092..37c00c8b 100644 --- a/klippy/chelper/kin_extruder.c +++ b/klippy/chelper/kin_extruder.c @@ -30,12 +30,14 @@ extruder_stepper_alloc(void) // Populate a 'struct move' with an extruder velocity trapezoid void __visible -extruder_move_fill(struct move *m, double print_time - , double accel_t, double cruise_t, double decel_t - , double start_pos - , double start_v, double cruise_v, double accel - , double extra_accel_v, double extra_decel_v) +extruder_add_move(struct trapq *tq, double print_time + , double accel_t, double cruise_t, double decel_t + , double start_pos + , double start_v, double cruise_v, double accel + , double extra_accel_v, double extra_decel_v) { + struct move *m = move_alloc(); + // Setup velocity trapezoid m->print_time = print_time; m->move_t = accel_t + cruise_t + decel_t; @@ -54,4 +56,6 @@ extruder_move_fill(struct move *m, double print_time // Setup start distance m->start_pos.x = start_pos; m->axes_r.x = 1.; + + trapq_add_move(tq, m); } |