Skip to content

motion/control: guard jerk decomposition for identity kinematics only#3890

Open
grandixximo wants to merge 1 commit intoLinuxCNC:masterfrom
grandixximo:fix/jerk-decomposition-kintype-guard
Open

motion/control: guard jerk decomposition for identity kinematics only#3890
grandixximo wants to merge 1 commit intoLinuxCNC:masterfrom
grandixximo:fix/jerk-decomposition-kintype-guard

Conversation

@grandixximo
Copy link
Copy Markdown

The S-curve jerk decomposition assumed joint[0,1,2] = X,Y,Z, which is only true for identity kinematics. For KINEMATICS_BOTH (e.g. XXYYYZ or rotatekins) joint indices don't map to axis letters, making the decomposition incorrect. Guard with KINEMATICS_IDENTITY check so non-trivial kinematics fall back to cubic interpolator jerk values.

This was mentioned in my 9d PR #3807

but it is already in master, so it should get a fix with this PR

The S-curve jerk decomposition assumed joint[0,1,2] = X,Y,Z, which is
only true for identity kinematics. For KINEMATICS_BOTH (e.g. XXYYYZ or
rotatekins) joint indices don't map to axis letters, making the
decomposition incorrect. Guard with KINEMATICS_IDENTITY check so
non-trivial kinematics fall back to cubic interpolator jerk values.
@grandixximo grandixximo mentioned this pull request Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant