aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/bltouch.py
Commit message (Collapse)AuthorAgeFilesLines
* bltouch: Raise probe on startupKevin O'Connor2019-01-211-6/+16
| | | | | | | Send a pin_up command during startup and try to verify that the probe actually raises. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* bltouch: Attempt to verify that the probe raises after each probe attemptKevin O'Connor2019-01-211-13/+22
| | | | | | | | Query the bltouch state during the pin_up command to try and verify that the probe does actually retract. This may be useful to detect if the bltouch enters into an "error" state. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* bltouch: Use pin_down mode for probingKevin O'Connor2019-01-211-3/+7
| | | | | | | | | | | | The BLTouch is more accurate when probing in "pin_down" mode than "touch_mode" (at least on some hardware). Rework the code to use that mode. When probing in pin_down mode, the BLTouch can go into an error state if a pin_up is not sent immediately after a touch signal. Rework the pin_up code to reduce the time it takes to transmit the command. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* bltouch: Simplify time keeping of scheduled eventsKevin O'Connor2019-01-211-26/+33
| | | | | | | Introduce a sync_print_time() method and update send_cmd() to track the duration of bltouch commands. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* bltouch: Verify probe always deploys during a homing operationKevin O'Connor2019-01-211-0/+7
| | | | | | | | | Verify that there is always some movement during a probing operation. This is normally done by the homing.py code (via its verify_movement check), but that check may not be enabled when z_virtual_endstop is used. So, always enable the check in the bltouch.py code. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* bltouch: Issue both a "reset" and a "pin_up" after a successful probeKevin O'Connor2018-12-161-1/+2
| | | | | | | Not all BLTouch clones raise the pin on a "reset" request, so explicitly send a "pin_up" command. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* bltouch: Add a config option to disable the bltouch sensor testKevin O'Connor2018-12-161-1/+5
| | | | | | | | It appears some bltouch "clones" do not report the probe as triggered when put in "touch mode" while the pin is raised. Add a config option to allow users to disable the test. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* bltouch: Always make sure to check the endstop at least every 1msKevin O'Connor2018-12-161-3/+7
| | | | | | | | Some of the bltouch implementations may only respond to a probe event with a 5ms pulse. Make sure to check the signal pin at least every millisecond to ensure no signal is lost. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* bltouch: Fix typo in pin_move_time parsingKevin O'Connor2018-12-041-1/+1
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* bltouch: Allow the pin_move_time to be configuredKevin O'Connor2018-12-041-9/+11
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* bltouch: Add a BLTOUCH_DEBUG commandKevin O'Connor2018-12-031-13/+32
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* bltouch: Fix bug - must restore stepper position after homingKevin O'Connor2018-12-011-0/+7
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* bltouch: Add initial support for a bltouch "extras" moduleKevin O'Connor2018-11-301-0/+93
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>