diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2021-08-05 23:21:31 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2021-08-08 22:28:10 -0400 |
commit | 06b8169f56f264a9175b7790ba39cadc187ec2de (patch) | |
tree | 66e5e65c05a2565c91b09be9108c8d696ea25b4e /klippy/stepper.py | |
parent | c2bfeb60aa895a783cb44eec9fdf50a6365118d0 (diff) | |
download | kutter-06b8169f56f264a9175b7790ba39cadc187ec2de.tar.gz kutter-06b8169f56f264a9175b7790ba39cadc187ec2de.tar.xz kutter-06b8169f56f264a9175b7790ba39cadc187ec2de.zip |
tmc: Track offset between tmc driver and mcu position
Track the offset between driver phase and mcu position. This offset
should be constant as long as neither the driver nor the mcu is reset.
If the offset ever changes, log a warning.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/stepper.py')
-rw-r--r-- | klippy/stepper.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/klippy/stepper.py b/klippy/stepper.py index 8feb72b5..bb95d4ed 100644 --- a/klippy/stepper.py +++ b/klippy/stepper.py @@ -163,6 +163,7 @@ class MCU_stepper: if ret: raise error("Internal error in stepcompress") self._set_mcu_position(last_pos) + self._mcu.get_printer().send_event("stepper:sync_mcu_position", self) def set_trapq(self, tq): ffi_main, ffi_lib = chelper.get_ffi() if tq is None: |