mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-14 02:07:56 -06:00
force_move: Make sure to flush step generation queue after each move
Add toolhead.note_kinematic_activity() call and use it to force the step generation to be flushed. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
c188aa982f
commit
ade65b90af
3 changed files with 9 additions and 4 deletions
|
@ -504,6 +504,8 @@ class ToolHead:
|
|||
self.kin_flush_times.append(delay)
|
||||
new_delay = max(self.kin_flush_times + [0.])
|
||||
self.kin_flush_delay = new_delay
|
||||
def note_kinematic_activity(self, kin_time):
|
||||
self.last_kin_move_time = max(self.last_kin_move_time, kin_time)
|
||||
def get_max_velocity(self):
|
||||
return self.max_velocity, self.max_accel
|
||||
def get_max_axis_halt(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue