Skip to content
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

Runtime configuration of encoder port in the amc board #531

Merged
merged 1 commit into from
Oct 29, 2024

Conversation

marcoaccame
Copy link
Contributor

@marcoaccame marcoaccame commented Oct 29, 2024

This PR adds full runtime configuration of the encoder port in the amc board.

In the amc board, the object theEncoderReader so far has used the encoder plugged in port J5_X1 for the first joint (and in general J5_Xi for the i-th joint) irrespectively of what is written in the xml file.

We noticed that when @SanLordKevin and I tested yri on the lego setup (xml files in here) with a change of the port of the encoder for the first joint. If we used J5_X2 or J5_X3 for the first and only joint then yri did not work.

On ergoCub this problem does not happen because all the ports are used in order.

Nevertheless that is a problem to be fixed.

So, this PR fixes it.

There is an associated PR for the binary:

This change affects only the amc and has been extensively tested on the lego setup and can be safely merged.

…s the encoder attached to the port specified in the xml files

previously always used J5_X1 (aka ENCODER::one) for the first joint, J5_X2 (aka ENCODER::two) for the second and J5_X3 for the third
nobody noticed because the xml files use J5_X1 / J5_X2 / J5_X3 in order and not mixed.

updated application version of the amc
@marcoaccame marcoaccame merged commit c15523e into robotology:devel Oct 29, 2024
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.

1 participant