aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/chelper/__init__.py
diff options
context:
space:
mode:
authorDmitry Butyugin <dmbutyugin@google.com>2021-10-22 20:46:20 +0200
committerKevinOConnor <kevin@koconnor.net>2021-10-26 16:14:50 -0400
commitd5a7a7f00fc9b171cdd485fb26987f4aa6eb0f6b (patch)
tree81165140f392e30eed540fafd1d010d7b8b48036 /klippy/chelper/__init__.py
parent6c395fd0165d9b73de4ea50dc5b88ddf9bc218c7 (diff)
downloadkutter-d5a7a7f00fc9b171cdd485fb26987f4aa6eb0f6b.tar.gz
kutter-d5a7a7f00fc9b171cdd485fb26987f4aa6eb0f6b.tar.xz
kutter-d5a7a7f00fc9b171cdd485fb26987f4aa6eb0f6b.zip
input_shaper: Define input shapers in a single place in Python code
Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
Diffstat (limited to 'klippy/chelper/__init__.py')
-rw-r--r--klippy/chelper/__init__.py18
1 files changed, 4 insertions, 14 deletions
diff --git a/klippy/chelper/__init__.py b/klippy/chelper/__init__.py
index 86560939..b5eb12dd 100644
--- a/klippy/chelper/__init__.py
+++ b/klippy/chelper/__init__.py
@@ -138,21 +138,11 @@ defs_kin_extruder = """
"""
defs_kin_shaper = """
- enum INPUT_SHAPER_TYPE {
- INPUT_SHAPER_ZV = 0,
- INPUT_SHAPER_ZVD = 1,
- INPUT_SHAPER_MZV = 2,
- INPUT_SHAPER_EI = 3,
- INPUT_SHAPER_2HUMP_EI = 4,
- INPUT_SHAPER_3HUMP_EI = 5,
- };
-
- double input_shaper_get_step_generation_window(int shaper_type
- , double shaper_freq, double damping_ratio);
+ double input_shaper_get_step_generation_window(int n, double a[]
+ , double t[]);
int input_shaper_set_shaper_params(struct stepper_kinematics *sk
- , int shaper_type_x, int shaper_type_y
- , double shaper_freq_x, double shaper_freq_y
- , double damping_ratio_x, double damping_ratio_y);
+ , int n_x, double a_x[], double t_x[]
+ , int n_y, double a_y[], double t_y[]);
int input_shaper_set_sk(struct stepper_kinematics *sk
, struct stepper_kinematics *orig_sk);
struct stepper_kinematics * input_shaper_alloc(void);