-
Notifications
You must be signed in to change notification settings - Fork 41
Unable to override default TPDO CAN-ID #51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Loading an enabled COB-ID fails the check that the PDO is disabled before updating the value. This check should be disabled in INIT state, as we do for the mapping parameters. Something like this:
Although this still doesn't help with the issue in #48? |
No this is a separate but mildly related issue, which if it would work could be used as part of a workaround for that problem. But other things would still be needed for that workaround, such as a way of triggering a store parameters locally. I have performed another trick to get around the #48 for now. |
Also, the application I'm working on doesn't have a need for customizing PDO COB-IDs, so this report is more of a heads-up and nothing I'm blocked by. |
Ok, the above diff should fix this problem. I'll add a testcase also. |
It should not be possible to update enabled PDO:s, except if in STATE_INIT when the dictionary is restored. Fix rtlabs-com#51.
It should not be possible to update enabled PDO:s, except if in STATE_INIT when the dictionary is restored. Fix #51.
An updated CAN-ID for a PDO that is setup in the defaults array does not stick even if the communication parameters are stored. This can be demonstrated using the example slave, with the addition of a long delay before exiting main, and the following test script:
candump
shows the following output:The last line shows that the TPDO COB-ID reverted to the default after an NMT reset. However, the updated mapping was correctly remembered.
The text was updated successfully, but these errors were encountered: