aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/endstop_phase.py
Commit message (Collapse)AuthorAgeFilesLines
* endstop_phase: Unify phase conversion codeKevin O'Connor2021-06-061-80/+87
| | | | | | | Introduce a new PhaseCalc class and use that for both homing and ENDSTOP_PHASE_CALIBRATE. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* endstop_phase: Add support for reporting phase information via get_status()Kevin O'Connor2021-06-031-14/+32
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stepper: Remove set_tag_position() codeKevin O'Connor2021-05-291-9/+8
| | | | | | Have callers store the stepper positions in a dict. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* Revert "endstop_phase: wip"Kevin O'Connor2021-04-281-7/+0
| | | | | | | | This reverts commit f2e4653ca4b0ed9ee2c8d7b0aa12a5e3973fa285. Revert incomplete testing code that was accidentally committed. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* endstop_phase: wipKevin O'Connor2021-04-281-0/+7
|
* homing: Make homing.py an "extras" moduleKevin O'Connor2021-01-081-3/+3
| | | | | | | Move klippy/homing.py to klippy/extras/homing.py and convert the code to an "extras" modules. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* endstop_phase: Obtain phases directly from stepper microsteps configKevin O'Connor2020-12-181-36/+41
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* homing: Remove EndstopErrorKevin O'Connor2020-09-041-3/+2
| | | | | | | There's no reason to distinguish between an EndstopError and a CommandError, so just use CommandError. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* klippy: Rename try_load_module() to load_object()Kevin O'Connor2020-05-081-2/+2
| | | | | | | | Rename try_load_module() so that it uses consistent naming for "printer objects". Change the function to raise an error by default if the specified module does not exist. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* endstop_phase: Use new GCodeCommand wrappersKevin O'Connor2020-05-051-11/+11
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* homing: Add a "home_rails_begin" event notifierKevin O'Connor2020-02-151-5/+5
| | | | | | Also, rename the "homed_rails" event to "home_rails_end". Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* endstop_phase: Query the stepper step_distance from the stepper objectKevin O'Connor2020-02-011-23/+39
| | | | | | | Don't obtain the step_distance from the config, instead obtain step_distance from the instantiated stepper object. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* endstop_phase: Use set_tag_position() instead of set_commanded_position()Kevin O'Connor2019-11-131-2/+2
| | | | | | | Use the new get/set_tag_position() calls to avoid altering the low-level kinematic position. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* endstop_phase: Add tmc2209 and tmc5160 to list of tmc driversKevin O'Connor2019-06-231-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* endstop_phase: Fix endstop_phase on trinamic drivers that aren't invertedKevin O'Connor2019-06-211-0/+2
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* tmc2660: Add endstop phase detection functionality to TMC2660 extra (#816)Florian Heilmann2018-10-241-1/+1
| | | Signed-off-by: Florian Heilmann <Florian.Heilmann@gmx.net>
* endstop_phase: Add support for an ENDSTOP_PHASE_CALIBRATE commandKevin O'Connor2018-10-161-0/+96
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* endstop_phase: Add support for detecting phase via TMC stepper driversKevin O'Connor2018-10-161-5/+25
| | | | | | | | 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>
* endstop_phase: Move endstop phase homing code to new "extras" moduleKevin O'Connor2018-10-161-0/+75
Move the endstop phase tracking code from stepper.py to a new extras/endstop_phase.py module. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>