aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/chelper/kin_cartesian.c
diff options
context:
space:
mode:
authorDmitry Butyugin <dmbutyugin@google.com>2023-08-01 18:23:52 +0200
committerGitHub <noreply@github.com>2023-08-01 12:23:52 -0400
commit36be1cfc5109355fb50cececedee936905fc6c7d (patch)
treee83c37a40214ee1ce001728fbf13e1d61c698e3d /klippy/chelper/kin_cartesian.c
parentea330717cde4c05e8952ae3fbb4bec2f11e7672f (diff)
downloadkutter-36be1cfc5109355fb50cececedee936905fc6c7d.tar.gz
kutter-36be1cfc5109355fb50cececedee936905fc6c7d.tar.xz
kutter-36be1cfc5109355fb50cececedee936905fc6c7d.zip
idex_modes: COPY and MIRROR mode implementation (#6297)
COPY and MIRROR mode implementation Correctly apply input shaper params to new dual_carriage Added SAVE_/RESTORE_IDEX_STATE commands Documentation updates for the new IDEX modes Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
Diffstat (limited to 'klippy/chelper/kin_cartesian.c')
-rw-r--r--klippy/chelper/kin_cartesian.c39
1 files changed, 0 insertions, 39 deletions
diff --git a/klippy/chelper/kin_cartesian.c b/klippy/chelper/kin_cartesian.c
index 3b1c8cba..86569d4a 100644
--- a/klippy/chelper/kin_cartesian.c
+++ b/klippy/chelper/kin_cartesian.c
@@ -49,42 +49,3 @@ cartesian_stepper_alloc(char axis)
}
return sk;
}
-
-static double
-cart_reverse_stepper_x_calc_position(struct stepper_kinematics *sk
- , struct move *m, double move_time)
-{
- return -move_get_coord(m, move_time).x;
-}
-
-static double
-cart_reverse_stepper_y_calc_position(struct stepper_kinematics *sk
- , struct move *m, double move_time)
-{
- return -move_get_coord(m, move_time).y;
-}
-
-static double
-cart_reverse_stepper_z_calc_position(struct stepper_kinematics *sk
- , struct move *m, double move_time)
-{
- return -move_get_coord(m, move_time).z;
-}
-
-struct stepper_kinematics * __visible
-cartesian_reverse_stepper_alloc(char axis)
-{
- struct stepper_kinematics *sk = malloc(sizeof(*sk));
- memset(sk, 0, sizeof(*sk));
- if (axis == 'x') {
- sk->calc_position_cb = cart_reverse_stepper_x_calc_position;
- sk->active_flags = AF_X;
- } else if (axis == 'y') {
- sk->calc_position_cb = cart_reverse_stepper_y_calc_position;
- sk->active_flags = AF_Y;
- } else if (axis == 'z') {
- sk->calc_position_cb = cart_reverse_stepper_z_calc_position;
- sk->active_flags = AF_Z;
- }
- return sk;
-}