From df42b0d1ac0b303025c8762fa727d79bc01a28a3 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Tue, 4 Apr 2017 21:59:28 -0400 Subject: 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 --- klippy/chelper.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'klippy/chelper.py') diff --git a/klippy/chelper.py b/klippy/chelper.py index 910fa5e6..afc5b1d9 100644 --- a/klippy/chelper.py +++ b/klippy/chelper.py @@ -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); -- cgit v1.2.3-70-g09d2