mirror of
git://soft.sys114.com/klipper
synced 2026-02-11 06:10:27 +09:00
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>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user