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

Improve deviceid_decoder #1414

Merged
merged 6 commits into from
Jan 31, 2023

Conversation

patrickelectric
Copy link
Member

No description provided.

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
@Williangalvani
Copy link
Member

idk exactly how I messed that up. but in my original it makes sense:
https://github.com/ArduPilot/UAVLogViewer/blob/master/src/components/widgets/DeviceIDViewer.vue#L152-L158

IIRC, UAVCAN and EAHRS do not provide the ID, so I did that in order to not show the wrong device

Based on the original reference: https://docs.px4.io/main/en/middleware/drivers.html
That [this code](https://github.com/ArduPilot/ardupilot/blob/master/Tools/scripts/decode_devid.py) was based.
It shows that the `UAVCAN` and `eAHRS` does not exist on the devtype map for Compass:
https://github.com/ArduPilot/ardupilot/blob/master/libraries/AP_Compass/AP_Compass_Backend.h#L55

Fix the check and update the comments explaining what is going on

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
@patrickelectric
Copy link
Member Author

@Williangalvani check now

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
@patrickelectric patrickelectric merged commit 59e7771 into bluerobotics:master Jan 31, 2023
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.

None yet

2 participants