From 1d81bf559657422db7a7dbd7a1f7f5b2b352eb21 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Tue, 4 Apr 2017 19:54:32 -0400 Subject: stepcompress: Pass constant velocity and acceleration directly to C code Update the C 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 | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'klippy/chelper.py') diff --git a/klippy/chelper.py b/klippy/chelper.py index b35089a1..bfc74127 100644 --- a/klippy/chelper.py +++ b/klippy/chelper.py @@ -22,12 +22,10 @@ defs_stepcompress = """ int stepcompress_push(struct stepcompress *sc, double step_clock , int32_t sdir); - int32_t stepcompress_push_factor(struct stepcompress *sc - , double steps, double step_offset - , double clock_offset, double factor); - int32_t stepcompress_push_sqrt(struct stepcompress *sc - , double steps, double step_offset - , double clock_offset, double sqrt_offset, double factor); + int32_t stepcompress_push_const(struct stepcompress *sc, double clock_offset + , double step_offset, double steps, double cruise_sv); + int32_t stepcompress_push_accel(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 -- cgit v1.2.3-70-g09d2