aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/chelper.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-04-04 21:59:28 -0400
committerKevin O'Connor <kevin@koconnor.net>2017-04-07 14:43:48 -0400
commitdf42b0d1ac0b303025c8762fa727d79bc01a28a3 (patch)
treeab5ae5786d01b7a7c73866cc4380d27f34349fee /klippy/chelper.py
parent98add22891d66d0a9ce21d35b750d20d3671382e (diff)
downloadkutter-df42b0d1ac0b303025c8762fa727d79bc01a28a3.tar.gz
kutter-df42b0d1ac0b303025c8762fa727d79bc01a28a3.tar.xz
kutter-df42b0d1ac0b303025c8762fa727d79bc01a28a3.zip
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>
Diffstat (limited to 'klippy/chelper.py')
-rw-r--r--klippy/chelper.py12
1 files changed, 6 insertions, 6 deletions
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);