diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2019-11-13 23:34:21 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2019-11-21 13:17:45 -0500 |
commit | 2843c850198010b1948a578a1b1421ee81be36b7 (patch) | |
tree | 48ff734635fe606a94238dd2f07fefa3dc3a3153 /klippy/extras/force_move.py | |
parent | 7c80e8d533728f80400691fcdf9bc3e6118e4ae8 (diff) | |
download | kutter-2843c850198010b1948a578a1b1421ee81be36b7.tar.gz kutter-2843c850198010b1948a578a1b1421ee81be36b7.tar.xz kutter-2843c850198010b1948a578a1b1421ee81be36b7.zip |
toolhead: Rename _full_flush() to flush_step_generation() and use globally
Update code that modifies the low-level kinematics handlers to first
call toolhead.flush_step_generation().
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/force_move.py')
-rw-r--r-- | klippy/extras/force_move.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/klippy/extras/force_move.py b/klippy/extras/force_move.py index 187ba91b..12707f4c 100644 --- a/klippy/extras/force_move.py +++ b/klippy/extras/force_move.py @@ -71,10 +71,11 @@ class ForceMove: toolhead.dwell(STALL_TIME) def manual_move(self, stepper, dist, speed, accel=0.): toolhead = self.printer.lookup_object('toolhead') - print_time = toolhead.get_last_move_time() + toolhead.flush_step_generation() prev_sk = stepper.set_stepper_kinematics(self.stepper_kinematics) stepper.set_position((0., 0., 0.)) axis_r, accel_t, cruise_t, cruise_v = calc_move_time(dist, speed, accel) + print_time = toolhead.get_last_move_time() self.trapq_append(self.trapq, print_time, accel_t, cruise_t, accel_t, 0., 0., 0., axis_r, 0., 0., 0., cruise_v, accel) print_time += accel_t + cruise_t + accel_t |