-
Notifications
You must be signed in to change notification settings - Fork 14.8k
UAVCAN: fix and improve device_id logic #26135
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
base: pr-uavcan_gnss_prio
Are you sure you want to change the base?
Conversation
|
Nice, I like doing this properly! However, note that some of the bridges that haven't been modified still leave the bus id as 0, for example rangefinder. Up until now, the "convention" has been to just leave bus id as 0 for everything DroneCAN. If we change that, we should be careful to update it everywhere. There is also some discussion if we actually want to separate DroneCAN buses, or treat them as as one large network. (Are two devices with the same DroneCAN ID on two different buses considered the "same" device, or two different ones?) I did something similar in an old draft, but haven't followed it up properly: |
6d0c478 to
46a8dd8
Compare
067d165 to
6fc57a7
Compare
|
@Claudio-Chies looks like there are some merge conflicts. Also try to avoid force pushing after review has started (if possible), it makes it difficult for reviewers to see what has changed between commits. |
dakejahl
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good! Stoked about this, thank you!
6fc57a7 to
0ce1bbf
Compare
Fixes device ID handling in UAVCAN bridges.
Solution
Refactor device ID logic across multiple UAVCAN sensor bridges to use a unified method for generating device IDs.
Changelog Entry
Bugfix: Improved device ID logic for UAVCAN sensors.
Test coverage
-[ ] open, didnt have the time yet.