aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/stepper.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2021-07-19 14:51:05 -0400
committerKevin O'Connor <kevin@koconnor.net>2021-07-29 16:35:30 -0400
commit7013a7b15f642e9233ba78ac9188ff01d2ebd4fb (patch)
treeb2777f851dc0bc040d7dee026af22a4748bbc85f /klippy/stepper.py
parentfbfa31a3c3bc948ac26494244d74dee21fe11b12 (diff)
downloadkutter-7013a7b15f642e9233ba78ac9188ff01d2ebd4fb.tar.gz
kutter-7013a7b15f642e9233ba78ac9188ff01d2ebd4fb.tar.xz
kutter-7013a7b15f642e9233ba78ac9188ff01d2ebd4fb.zip
stepcompress: Support extracting stepcompress history
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/stepper.py')
-rw-r--r--klippy/stepper.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/klippy/stepper.py b/klippy/stepper.py
index 5c717ca9..6609fca2 100644
--- a/klippy/stepper.py
+++ b/klippy/stepper.py
@@ -119,6 +119,12 @@ class MCU_stepper:
def get_past_commanded_position(self, print_time):
mcu_pos = self.get_past_mcu_position(print_time)
return mcu_pos * self._step_dist - self._mcu_position_offset
+ def dump_steps(self, count, start_clock, end_clock):
+ ffi_main, ffi_lib = chelper.get_ffi()
+ data = ffi_main.new('struct pull_history_steps[]', count)
+ count = ffi_lib.stepcompress_extract_old(self._stepqueue, data, count,
+ start_clock, end_clock)
+ return (data, count)
def set_stepper_kinematics(self, sk):
old_sk = self._stepper_kinematics
mcu_pos = 0