mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-16 03:07:56 -06:00
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>
This commit is contained in:
parent
c2bfeb60aa
commit
06b8169f56
2 changed files with 60 additions and 6 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue