endstop_phase: Add support for detecting phase via TMC stepper drivers

The Trinamic stepper motor drivers are capable of reporting the
stepper phase - add support for using that capability to the
enddstop_phases module.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2018-10-10 19:48:35 -04:00
parent a2df01b88e
commit def524bdf4
4 changed files with 38 additions and 8 deletions

View file

@ -329,9 +329,11 @@
# of endstop switches.
#[endstop_phase stepper_z]
#phases:
# Set this to the number of phases of the given stepper motor driver
# (which is the number of micro-steps multiplied by four). This
# parameter must be provided.
# This specifies the number of phases of the given stepper motor
# driver (which is the number of micro-steps multiplied by four).
# This setting is automatically determined if one uses TMC2130,
# TMC2208, or TMC2224 drivers with run-time configuration.
# Otherwise, this parameter must be provided.
#endstop_accuracy: 0.200
# Sets the expected accuracy (in mm) of the endstop. This represents
# the maximum error distance the endstop may trigger (eg, if an