diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2019-05-20 18:50:56 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2019-05-26 11:09:32 -0400 |
commit | 7702cc29721dde714a3e40c3ba67ecdd47f5045c (patch) | |
tree | 3b8a7a8f89c3ae6841ad892b576646f1322c3255 /klippy | |
parent | 8532e2123ecd3868381fd7438dc25e3fd535bfbf (diff) | |
download | kutter-7702cc29721dde714a3e40c3ba67ecdd47f5045c.tar.gz kutter-7702cc29721dde714a3e40c3ba67ecdd47f5045c.tar.xz kutter-7702cc29721dde714a3e40c3ba67ecdd47f5045c.zip |
bltouch: Update command timing
Prior to the BLTouch v3, the recommended command times were 700us
(pin_down), 1200us (touch_mode), 1500us (pin_up), 1800us (self_test),
and 2200us (reset). However, the recommended Marlin timing (via servo
"angles") was 647.111, 1162.667, 1472, 1781.333, and 2193.778us.
As of the BLTouch v3, the recommended times are now 650, 1165, 1475,
1780, and 2190us. The v3 continues to recommended Marlin timings of
647.111, 1162.667, 1472, 1781.333, and 2193.778us.
Update Klipper to use the new BL-Touch v3 recommended timing. The new
timings are required for the BL-Touch v3 and they are closer to what
the Marlin firmware has historically used.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy')
-rw-r--r-- | klippy/extras/bltouch.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/klippy/extras/bltouch.py b/klippy/extras/bltouch.py index 889e23d2..34593ae8 100644 --- a/klippy/extras/bltouch.py +++ b/klippy/extras/bltouch.py @@ -1,13 +1,13 @@ # BLTouch support # -# Copyright (C) 2018 Kevin O'Connor <kevin@koconnor.net> +# Copyright (C) 2018-2019 Kevin O'Connor <kevin@koconnor.net> # # This file may be distributed under the terms of the GNU GPLv3 license. import math, logging import homing, probe -SIGNAL_PERIOD = 0.025600 -MIN_CMD_TIME = 4 * SIGNAL_PERIOD +SIGNAL_PERIOD = 0.020 +MIN_CMD_TIME = 5 * SIGNAL_PERIOD TEST_TIME = 5 * 60. RETRY_RESET_TIME = 1. @@ -16,8 +16,8 @@ ENDSTOP_SAMPLE_TIME = .000015 ENDSTOP_SAMPLE_COUNT = 4 Commands = { - None: 0.0, 'pin_down': 0.000700, 'touch_mode': 0.001200, - 'pin_up': 0.001500, 'self_test': 0.001800, 'reset': 0.002200, + None: 0.0, 'pin_down': 0.000650, 'touch_mode': 0.001165, + 'pin_up': 0.001475, 'self_test': 0.001780, 'reset': 0.002190, } # BLTouch "endstop" wrapper |