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>
This commit is contained in:
Philippe Daouadi 2025-03-12 20:33:57 +01:00 committed by KevinOConnor
parent 47aa28e530
commit d886c1761b

View File

@ -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