Skip to content

hal: Update kinematics to getter/setter - #4288

Merged
grandixximo merged 1 commit into
LinuxCNC:masterfrom
BsAtHome:halgs_kinematics
Jul 30, 2026
Merged

hal: Update kinematics to getter/setter#4288
grandixximo merged 1 commit into
LinuxCNC:masterfrom
BsAtHome:halgs_kinematics

Conversation

@BsAtHome

Copy link
Copy Markdown
Contributor

This updates the kinematics components to getter/setter. Most of this is very straight forward.
(there appear to be more kinematics files in hal/components, like matrixkins, will be done later)

There are several kinematics that have pins/params with initial values. They are created in a loop and the initial values are now taken from a few static const arrays so the loop can easily address and set the initial value for the specific pin/param. Having a few bytes of added .rodata should be no problem.

A few kinematics modules have some fixes to add static to some local variables like the component ID and the haldata pointer. These are exclusively local to the module. Some error checking in rtapi_app_main() was improved and streamlined when it could be easily done without needing to go into rewrite/refactor mode.

A few obvious and easy to fix cases of multiple reads of a pin/param were altered into cached reads.

Corexykins had all its completely unused pins structure and halmem allocation removed (all from copy/paste coding). Also unused headers were removed.

@grandixximo
grandixximo merged commit b118223 into LinuxCNC:master Jul 30, 2026
16 checks passed
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.

2 participants