hal: Update three21kins to getter/setter - #4360
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
pumakinsand the rest ofsrc/emc/kinematics:hal_real_tmembers instead ofhal_float_t *hal_pin_new_real(), defaults supplied by the pin definition rather than assigned after creationhal_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.