aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/chelper/__init__.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2019-10-29 12:44:39 -0400
committerKevin O'Connor <kevin@koconnor.net>2019-11-06 15:51:51 -0500
commit1acaaa98c21af0a2a2cff725365dfda0ff4b7204 (patch)
tree601ce8a29fb24f7b4b83368c120c386563d2ff1b /klippy/chelper/__init__.py
parent797dcfcb1218194077d37dd53575c19c4af710c5 (diff)
downloadkutter-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/__init__.py')
-rw-r--r--klippy/chelper/__init__.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/klippy/chelper/__init__.py b/klippy/chelper/__init__.py
index 2c8f78f3..e26e31ba 100644
--- a/klippy/chelper/__init__.py
+++ b/klippy/chelper/__init__.py
@@ -58,15 +58,13 @@ defs_itersolve = """
"""
defs_trapq = """
- struct move *move_alloc(void);
- void move_fill(struct move *m, double print_time
+ 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);
struct trapq *trapq_alloc(void);
void trapq_free(struct trapq *tq);
- void trapq_add_move(struct trapq *tq, struct move *m);
void trapq_free_moves(struct trapq *tq, double print_time);
"""
@@ -94,7 +92,7 @@ defs_kin_winch = """
defs_kin_extruder = """
struct stepper_kinematics *extruder_stepper_alloc(void);
- void extruder_move_fill(struct move *m, double print_time
+ void 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);