Skip to content

hal: Update three21kins to getter/setter - #4360

Merged
BsAtHome merged 1 commit into
LinuxCNC:masterfrom
grandixximo:three21kins-getter-setter
Aug 8, 2026
Merged

hal: Update three21kins to getter/setter#4360
BsAtHome merged 1 commit into
LinuxCNC:masterfrom
grandixximo:three21kins-getter-setter

Conversation

@grandixximo

Copy link
Copy Markdown
Contributor

three21kins (#4270) branched before 51fc302 converted the kinematics modules to the getter/setter HAL API, so it landed with the old double-pointer pin pattern and a set of (*(haldata->x)) macros.

This brings it in line with pumakins and the rest of src/emc/kinematics:

  • DH parameters stored as hal_real_t members instead of hal_float_t *
  • pins created with hal_pin_new_real(), defaults supplied by the pin definition rather than assigned after creation
  • values read with hal_get_real()

The per-call local copies of the parameters are unchanged, so each pin is still read once per kinematics call. No functional change.

three21kins was merged from a branch that predated the tree-wide
kinematics conversion in 51fc302, so it still used the old
double-pointer pin pattern.

Store the DH parameters as hal_real_t members, create the pins with
hal_pin_new_real() so the defaults come from the pin definition, and
read them with hal_get_real(). The per-call local copies of the
parameters are kept as they were.

No functional change.
@BsAtHome
BsAtHome merged commit cb2c8aa into LinuxCNC:master Aug 8, 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