diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2017-04-04 19:54:32 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2017-04-07 13:57:24 -0400 |
commit | 1d81bf559657422db7a7dbd7a1f7f5b2b352eb21 (patch) | |
tree | 7630cb6e617e921b163c30064668e0a39784e4d9 /klippy/chelper.py | |
parent | e4153a536fe10671abc248d9e34347fbaccb2ec3 (diff) | |
download | kutter-1d81bf559657422db7a7dbd7a1f7f5b2b352eb21.tar.gz kutter-1d81bf559657422db7a7dbd7a1f7f5b2b352eb21.tar.xz kutter-1d81bf559657422db7a7dbd7a1f7f5b2b352eb21.zip |
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 <kevin@koconnor.net>
Diffstat (limited to 'klippy/chelper.py')
-rw-r--r-- | klippy/chelper.py | 10 |
1 files changed, 4 insertions, 6 deletions
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 |