hal: Update component pid to getter/setter - #4335
Conversation
|
Oh wow, that was quick, a good sprint to the finish line ;-) |
|
rip-rtai its doing its thing being slow on |
Yes and no. The rtai CI downloads the kernel files from the NTULINUX repo. The download would get a "connection reset" aborting the build. The next problem is that the "Install dependencies" step in all the CI is tripping on hangs while downloading packages. Then you finally timeout and fail CI. This has been happening very often lately. Almost often enough to make the whole CI experience more trouble than its worth. |
|
BTW, I figured it out how the The |
The final component! Probably the largest change set for one file.
There are no parameters in this component. However, there are several pins that are only allocated conditionally. Target memory for these was allocated using hal_malloc in the else-clause. This as changes to allocate fake parameters to achieve the same function and prevent potentially compromising target memory size requirements.
There is an interesting thing for pins
commandvdsandfeedbackvds. These are made to point tocommandvandfeedbackvat pin creating time, which are created pins. It states in a comment "compute command and feedback derivatives to dummysigs", but it does not make sense. The original code always lets the...vdsversion point to the...vversion (these are just pointers), so its intent and actual implementation may not align.The code to export pins in export_pid():
... CHK(hal_pin_new_real(comp_id, HAL_IN, &(addr->commandv), 0.0, "%s.command-deriv", prefix)); addr->commandvds = addr->commandv; CHK(hal_pin_new_real(comp_id, HAL_IN, &(addr->feedbackv), 0.0, "%s.feedback-deriv", prefix)); addr->feedbackvds = addr->feedbackv; ...The original code where the assignment takes place.
The calculations assign to pins
commandvdsandfeedbackvdsand will effectively be written tocommandvandfeedbackv. No idea why this was done this way...