aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZarrsito <78433597+Zarrsito@users.noreply.github.com>2023-07-17 04:30:37 +0200
committerGitHub <noreply@github.com>2023-07-16 22:30:37 -0400
commitd725dfd309e3db2a7b26b9b452cfde6cb9272f34 (patch)
tree186aa3a6a8fdf208ce63bdbfd4ea15959578b576
parent7e93af2574f2347c2c68dd84391aa249fb44e6bd (diff)
downloadkutter-d725dfd309e3db2a7b26b9b452cfde6cb9272f34.tar.gz
kutter-d725dfd309e3db2a7b26b9b452cfde6cb9272f34.tar.xz
kutter-d725dfd309e3db2a7b26b9b452cfde6cb9272f34.zip
screws_tilt_adjust: Added Support for M6 Screws (#6287)
Added support for M6 Screws Signed-off-by: Sascha Petersen <Zarrsito@gmail.com>
-rw-r--r--klippy/extras/screws_tilt_adjust.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/klippy/extras/screws_tilt_adjust.py b/klippy/extras/screws_tilt_adjust.py
index 5698f0bd..423c4a09 100644
--- a/klippy/extras/screws_tilt_adjust.py
+++ b/klippy/extras/screws_tilt_adjust.py
@@ -28,7 +28,7 @@ class ScrewsTiltAdjust:
raise config.error("screws_tilt_adjust: Must have "
"at least three screws")
self.threads = {'CW-M3': 0, 'CCW-M3': 1, 'CW-M4': 2, 'CCW-M4': 3,
- 'CW-M5': 4, 'CCW-M5': 5}
+ 'CW-M5': 4, 'CCW-M5': 5, 'CW-M6': 6, 'CCW-M6': 7}
self.thread = config.getchoice('screw_thread', self.threads,
default='CW-M3')
# Initialize ProbePointsHelper
@@ -66,8 +66,10 @@ class ScrewsTiltAdjust:
def probe_finalize(self, offsets, positions):
self.results = {}
self.max_diff_error = False
- # Factors used for CW-M3, CCW-M3, CW-M4, CCW-M4, CW-M5 and CCW-M5
- threads_factor = {0: 0.5, 1: 0.5, 2: 0.7, 3: 0.7, 4: 0.8, 5: 0.8}
+ # Factors used for CW-M3, CCW-M3, CW-M4, CCW-M4, CW-M5, CCW-M5, CW-M6
+ #and CCW-M6
+ threads_factor = {0: 0.5, 1: 0.5, 2: 0.7, 3: 0.7, 4: 0.8, 5: 0.8,
+ 6: 1.0, 7: 1.0}
is_clockwise_thread = (self.thread & 1) == 0
screw_diff = []
# Process the read Z values