mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-08-05 04:54:11 -06:00
endstop_phase: Convert to using tmc mcu_phase_offset
Now that the TMC drivers track the phase offset, use that to implement endstop phase. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
06b8169f56
commit
f759df3cd7
7 changed files with 26 additions and 33 deletions
|
@ -294,8 +294,7 @@ class TMC5160:
|
|||
current_helper = TMC5160CurrentHelper(config, self.mcu_tmc)
|
||||
cmdhelper = tmc.TMCCommandHelper(config, self.mcu_tmc, current_helper)
|
||||
cmdhelper.setup_register_dump(ReadRegisters)
|
||||
self.get_microsteps = cmdhelper.get_microsteps
|
||||
self.get_phase = cmdhelper.get_phase
|
||||
self.get_phase_offset = cmdhelper.get_phase_offset
|
||||
# Setup basic register values
|
||||
tmc.TMCStealthchopHelper(config, self.mcu_tmc, TMC_FREQUENCY)
|
||||
# CHOPCONF
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue