aboutsummaryrefslogtreecommitdiffstats
path: root/klippy
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2021-04-05 10:18:02 -0400
committerKevin O'Connor <kevin@koconnor.net>2021-04-28 21:40:49 -0400
commit0a4a64058d8190d219d789b95ab58d6b7bea1415 (patch)
tree2a0a71962c3b2b23a08a690f8f5b82ed3ae9539c /klippy
parent0990a3da6f01bbd69d40323f612982a95df66ec1 (diff)
downloadkutter-0a4a64058d8190d219d789b95ab58d6b7bea1415.tar.gz
kutter-0a4a64058d8190d219d789b95ab58d6b7bea1415.tar.xz
kutter-0a4a64058d8190d219d789b95ab58d6b7bea1415.zip
probe: Use original XY position on multiple probe samples
On some kinematics it's possible for the XY position to change slightly during a probing move. Return back to the original XY position on a probe lift so each probe attempt starts at the same nominal position. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy')
-rw-r--r--klippy/extras/probe.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/klippy/extras/probe.py b/klippy/extras/probe.py
index 47f438db..a8fc36a6 100644
--- a/klippy/extras/probe.py
+++ b/klippy/extras/probe.py
@@ -154,6 +154,7 @@ class PrinterProbe:
must_notify_multi_probe = not self.multi_probe_pending
if must_notify_multi_probe:
self.multi_probe_begin()
+ probexy = self.printer.lookup_object('toolhead').get_position()[:2]
retries = 0
positions = []
while len(positions) < sample_count:
@@ -170,8 +171,7 @@ class PrinterProbe:
positions = []
# Retract
if len(positions) < sample_count:
- liftpos = [None, None, pos[2] + sample_retract_dist]
- self._move(liftpos, lift_speed)
+ self._move(probexy + [pos[2] + sample_retract_dist], lift_speed)
if must_notify_multi_probe:
self.multi_probe_end()
# Calculate and return result