mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-10-26 07:46:11 +01:00
stepcompress: Generate steps in a per-stepper background thread
Create a thread for each stepper and use it for step generation and step compression. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
@@ -44,7 +44,8 @@ class MCU_stepper:
|
||||
self._reset_cmd_tag = self._get_position_cmd = None
|
||||
self._active_callbacks = []
|
||||
motion_queuing = printer.load_object(config, 'motion_queuing')
|
||||
self._stepqueue = motion_queuing.allocate_stepcompress(mcu, oid)
|
||||
sname = self._name.split()[-1]
|
||||
self._stepqueue = motion_queuing.allocate_stepcompress(mcu, oid, sname)
|
||||
ffi_main, ffi_lib = chelper.get_ffi()
|
||||
ffi_lib.stepcompress_set_invert_sdir(self._stepqueue, self._invert_dir)
|
||||
self._stepper_kinematics = None
|
||||
|
||||
Reference in New Issue
Block a user