aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2025-04-07 20:31:50 -0400
committerKevin O'Connor <kevin@koconnor.net>2025-05-12 20:15:03 -0400
commit53acdfd0a5421d93a41da0a77a982752af10f8b0 (patch)
tree4d53f8daf528cbe4156a51a00a7c08358602e37c /klippy/extras
parenta537ae0ceb1e611ef37ef4d83740240fadd31c47 (diff)
downloadkutter-53acdfd0a5421d93a41da0a77a982752af10f8b0.tar.gz
kutter-53acdfd0a5421d93a41da0a77a982752af10f8b0.tar.xz
kutter-53acdfd0a5421d93a41da0a77a982752af10f8b0.zip
skew_correction: Support toolhead positions with more than 4 axes
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras')
-rw-r--r--klippy/extras/skew_correction.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/klippy/extras/skew_correction.py b/klippy/extras/skew_correction.py
index 6a2cbd29..94d8ceb7 100644
--- a/klippy/extras/skew_correction.py
+++ b/klippy/extras/skew_correction.py
@@ -59,12 +59,12 @@ class PrinterSkew:
skewed_x = pos[0] - pos[1] * self.xy_factor \
- pos[2] * (self.xz_factor - (self.xy_factor * self.yz_factor))
skewed_y = pos[1] - pos[2] * self.yz_factor
- return [skewed_x, skewed_y, pos[2], pos[3]]
+ return [skewed_x, skewed_y] + pos[2:]
def calc_unskew(self, pos):
skewed_x = pos[0] + pos[1] * self.xy_factor \
+ pos[2] * self.xz_factor
skewed_y = pos[1] + pos[2] * self.yz_factor
- return [skewed_x, skewed_y, pos[2], pos[3]]
+ return [skewed_x, skewed_y] + pos[2:]
def get_position(self):
return self.calc_unskew(self.next_transform.get_position())
def move(self, newpos, speed):