aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/homing.py
Commit message (Collapse)AuthorAgeFilesLines
* homing: Fix error in retract move causing "must home axis" errorsKevin O'Connor2021-08-281-12/+15
| | | | | | | | | It's possible for the original homing move of an axis to alter the position of other axes. Make sure those other axes are not requested to move on a subsequent second home retract move, as that could cause an error if those other axes have not been homed. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* endstop_phase: Calculate phase based on trigger positionKevin O'Connor2021-08-171-10/+16
| | | | | | | Update the endstop_phase code to use the phase of the stepper motor at the endstop trigger time. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* homing: Calculate homing position based on trigger timeKevin O'Connor2021-08-171-19/+54
| | | | | | | | | Calculate the "homing position" using the endstop trigger time instead of the position of the steppers. This is in preparation for multi-mcu homing. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* mcu: Return time of trigger from home_wait()Kevin O'Connor2021-08-171-3/+5
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* homing: Improve error messages on a printer shutdown during homingKevin O'Connor2021-08-061-3/+18
| | | | | | | | If a shutdown occurs during homing, make sure any follow up errors are clear that the cause of the error is the shutdown. This suppresses the confusing "Unable to obtain 'trsync_state' response" messages. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* homing: Check for failures during multi-endstop homingKevin O'Connor2021-06-091-2/+7
| | | | | | If any endstop reports a failure, then stop homing on all endstops. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stepper: Remove set_tag_position() codeKevin O'Connor2021-05-291-10/+15
| | | | | | Have callers store the stepper positions in a dict. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* homing: Pass the HomingMove class to homing_move_begin/end eventsKevin O'Connor2021-03-291-4/+4
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* homing: Move homing logic from manual_stepper.py to homing.pyKevin O'Connor2021-03-291-16/+27
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* homing: Extract out movement verification to new check_no_movement()Kevin O'Connor2021-03-291-19/+22
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* homing: Separate homing/probing movement logic to its own classKevin O'Connor2021-03-291-29/+37
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* homing: Move home_axes() into cmd_G28()Kevin O'Connor2021-03-291-8/+7
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* homing: Minor simplification of verify_movement trackingKevin O'Connor2021-03-291-7/+4
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* homing: Move low-level probing logic from probe.py to homing.pyKevin O'Connor2021-03-291-5/+9
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* homing: Fix references to CommandError()Kevin O'Connor2021-01-111-6/+7
| | | | | | | | Commit ea85d419 moved CommandError from homing.py to gcode.py, but failed to fix the references to CommandError within homing.py. Fix that. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* homing: Make homing.py an "extras" moduleKevin O'Connor2021-01-081-0/+182
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>