diff options
author | Philippe Daouadi <philippe@ud2.org> | 2025-03-12 20:33:57 +0100 |
---|---|---|
committer | KevinOConnor <kevin@koconnor.net> | 2025-03-12 18:29:20 -0400 |
commit | d886c1761bbdfd23833996489afba6b75f312a4a (patch) | |
tree | e5fc01b00a96abec1d65938e621614995edbf15b /klippy/extras | |
parent | 47aa28e5300d75764add52e34b23b1804147626c (diff) | |
download | kutter-d886c1761bbdfd23833996489afba6b75f312a4a.tar.gz kutter-d886c1761bbdfd23833996489afba6b75f312a4a.tar.xz kutter-d886c1761bbdfd23833996489afba6b75f312a4a.zip |
axis_twist_compensation: allow compensating both axis at once
Restores the behavior before #6739 since people seemed to rely on it,
even if the math is not exact.
Signed-off-by: Philippe Daouadi <philippe@ud2.org>
Diffstat (limited to 'klippy/extras')
-rw-r--r-- | klippy/extras/axis_twist_compensation.py | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/klippy/extras/axis_twist_compensation.py b/klippy/extras/axis_twist_compensation.py index 3ab27f00..17437a97 100644 --- a/klippy/extras/axis_twist_compensation.py +++ b/klippy/extras/axis_twist_compensation.py @@ -45,21 +45,6 @@ class AxisTwistCompensation: self.zy_compensations = config.getlists('zy_compensations', default=[], parser=float) - # Validate single compensation - valid_conditions = sum( - [ - bool(self.z_compensations), - bool(self.zy_compensations) - ] - ) - - if valid_conditions > 1: - raise config.error( - """AXIS_TWIST_COMPENSATION: Only one type of compensation - can be present at a time: - either z_compensations or zy_compensations.""" - ) - # setup calibrater self.calibrater = Calibrater(self, config) # register events |