mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-18 04:08:04 -06:00
stepcompress: Pass delta velocity and acceleration directly to C code
Update the C delta kinematic code to take velocity and acceleration directly in step distances and clock ticks. This simplifies the mcu.py python code as it only needs to do unit and axis conversion. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
98add22891
commit
df42b0d1ac
3 changed files with 57 additions and 51 deletions
|
@ -25,13 +25,13 @@ defs_stepcompress = """
|
|||
int32_t stepcompress_push_const(struct stepcompress *sc, double clock_offset
|
||||
, double step_offset, double steps, double start_sv, double accel);
|
||||
int32_t stepcompress_push_delta_const(struct stepcompress *sc
|
||||
, double clock_offset, double dist, double start_pos
|
||||
, double inv_velocity, double step_dist, double height
|
||||
, double closestxy_d, double closest_height2, double movez_r);
|
||||
, double clock_offset, double start_pos, double steps, double cruise_sv
|
||||
, double height, double closestxy_sd
|
||||
, double closest_height2, double movez_r);
|
||||
int32_t stepcompress_push_delta_accel(struct stepcompress *sc
|
||||
, double clock_offset, double dist, double start_pos
|
||||
, double accel_multiplier, double step_dist, double height
|
||||
, double closestxy_d, double closest_height2, double movez_r);
|
||||
, double clock_offset, double start_pos, double steps, double start_sv
|
||||
, double accel, double height, double closestxy_sd
|
||||
, double closest_height2, double movez_r);
|
||||
|
||||
struct steppersync *steppersync_alloc(struct serialqueue *sq
|
||||
, struct stepcompress **sc_list, int sc_num, int move_num);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue