Skip to content

Commit

Permalink
generic_cartesian: Fixed kinematics coefficients calculation
Browse files Browse the repository at this point in the history
For non-idex setups the calculation was returning incorrect results.

Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
  • Loading branch information
dmbutyugin committed Jul 18, 2024
1 parent 6a1f0a1 commit 4538f7d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion klippy/kinematics/generic_cartesian.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ def _get_kinematics_coeffs(self):
matr = {s.get_name() : list(s.get_kin_coeffs()) for s in self.steppers}
offs = {s.get_name() : [0.] * 3 for s in self.steppers}
if self.dc_module is None:
return matr, offs
return [matr[s.get_name()] for s in self.steppers], \
[0. for s in self.steppers]
axes = [dc.get_axis() for dc in self.dc_carriages]
orig_matr = copy.deepcopy(matr)
for dc in self.dc_carriages:
Expand Down

0 comments on commit 4538f7d

Please sign in to comment.