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

Joy message wasn't getting the extra axis from knuckle controller #11

Closed
zp-yang opened this issue Apr 19, 2024 · 4 comments
Closed

Joy message wasn't getting the extra axis from knuckle controller #11

zp-yang opened this issue Apr 19, 2024 · 4 comments

Comments

@zp-yang
Copy link
Contributor

zp-yang commented Apr 19, 2024

Knuckle controllers have 11 axes as input, but the original max count was 8 so the pad force, stick-x and stick-y weren't mapped to the joy message. Submitted a simple fix for this by doubling the max count. #10
knuckle-buttons

@zp-yang
Copy link
Contributor Author

zp-yang commented Apr 23, 2024 via email

@asymingt
Copy link
Owner

I think we should match whatever they do. I think it must have been my error when converting from their ROS1 to a ROS2 node. Are you happy to update the loop to span 16 elements?

@zp-yang
Copy link
Contributor Author

zp-yang commented Apr 26, 2024

I think we should match whatever they do. I think it must have been my error when converting from their ROS1 to a ROS2 node. Are you happy to update the loop to span 16 elements?

Sure thing. Since SURVIVE_MAX_AXIS_COUNT is already 8, doubling it would be 16 and that is what my hacky fix was. Or do your prefer to hard code a '16' for the loop count?

@asymingt
Copy link
Owner

It's not a big deal. To me the doubling gives the sense that up to two logical devices are supported, whereas it seems more like that there are just more values that need to be packed. So, why not just #define a new max of 16 and use the descriptive variable name? I can do that if you're busy. Either way, thank you very much for finding and fixing this bug!

@zp-yang zp-yang closed this as completed Sep 10, 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

No branches or pull requests

2 participants