diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2018-06-13 16:53:25 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2018-06-20 09:26:10 -0400 |
commit | bbe53cf8e50965af5e172166021147704b2e36fe (patch) | |
tree | 8d738ff205244d6deba49128efb5f99753566b5e /klippy/chelper/itersolve.c | |
parent | 7148ebd565bfb123326b4bd8823bdc26f39a6cf2 (diff) | |
download | kutter-bbe53cf8e50965af5e172166021147704b2e36fe.tar.gz kutter-bbe53cf8e50965af5e172166021147704b2e36fe.tar.xz kutter-bbe53cf8e50965af5e172166021147704b2e36fe.zip |
extruder: Convert to using iterative solver
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/chelper/itersolve.c')
-rw-r--r-- | klippy/chelper/itersolve.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/klippy/chelper/itersolve.c b/klippy/chelper/itersolve.c index e79d5f5f..72e6ad89 100644 --- a/klippy/chelper/itersolve.c +++ b/klippy/chelper/itersolve.c @@ -17,19 +17,6 @@ * Kinematic moves ****************************************************************/ -struct move_accel { - double c1, c2; -}; - -struct move { - double print_time, move_t; - double accel_t, cruise_t; - double cruise_start_d, decel_start_d; - double cruise_v; - struct move_accel accel, decel; - struct coord start_pos, axes_r; -}; - struct move * __visible move_alloc(void) { @@ -80,7 +67,7 @@ move_eval_accel(struct move_accel *ma, double move_time) } // Return the distance moved given a time in a move -static double +inline double move_get_distance(struct move *m, double move_time) { if (unlikely(move_time < m->accel_t)) |