aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/chelper/kin_extruder.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2019-10-29 10:57:36 -0400
committerKevin O'Connor <kevin@koconnor.net>2019-11-06 15:51:51 -0500
commit9845d0d103ac70306086ce6b4588532084bd9ae9 (patch)
tree3e89b3bf83eb2baac320617b9824345415894106 /klippy/chelper/kin_extruder.c
parent746b928c8bd5208fd7bbde15472e9dcb40b9f351 (diff)
downloadkutter-9845d0d103ac70306086ce6b4588532084bd9ae9.tar.gz
kutter-9845d0d103ac70306086ce6b4588532084bd9ae9.tar.xz
kutter-9845d0d103ac70306086ce6b4588532084bd9ae9.zip
extruder: Convert step generation to use trapq system
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/chelper/kin_extruder.c')
-rw-r--r--klippy/chelper/kin_extruder.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/klippy/chelper/kin_extruder.c b/klippy/chelper/kin_extruder.c
index dd2d27d6..26513092 100644
--- a/klippy/chelper/kin_extruder.c
+++ b/klippy/chelper/kin_extruder.c
@@ -1,6 +1,6 @@
// Extruder stepper pulse time generation
//
-// Copyright (C) 2018 Kevin O'Connor <kevin@koconnor.net>
+// Copyright (C) 2018-2019 Kevin O'Connor <kevin@koconnor.net>
//
// This file may be distributed under the terms of the GNU GPLv3 license.
@@ -24,6 +24,7 @@ extruder_stepper_alloc(void)
struct stepper_kinematics *sk = malloc(sizeof(*sk));
memset(sk, 0, sizeof(*sk));
sk->calc_position_cb = extruder_calc_position;
+ sk->active_flags = AF_X;
return sk;
}
@@ -52,4 +53,5 @@ extruder_move_fill(struct move *m, double print_time
// Setup start distance
m->start_pos.x = start_pos;
+ m->axes_r.x = 1.;
}