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

info: expose new UUID (uid2) #629

Merged
merged 7 commits into from
Jan 9, 2019
Merged

info: expose new UUID (uid2) #629

merged 7 commits into from
Jan 9, 2019

Conversation

julianoes
Copy link
Collaborator

This adds support to query the new UUID using the info plugin.
Vehicles only sending the old UUID (uid) are still supported if the uid2 is all zeros as specified.

@bkueng or @thomasetter please review.

This adds support to query the new UUID using the info plugin.
Vehicles only sending the old UUID (uid) are still supported if the uid2
is all zeros as specified.
Copy link

@thomasetter thomasetter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding this!

This is just a unique ID, not actually a universally unique ID.
If the autopilot does not populate uid2 yet, we will just return 0. This
way we're at least consistent.
JonasVautherin
JonasVautherin previously approved these changes Jan 8, 2019
We should make sure the two fields have the same length using a
static_assert since that's cleaner than doing a memset with zero and
prevents us from doing an overrun in the memcpy.
@julianoes
Copy link
Collaborator Author

Well, somehow Jenkins decided this branch is "disabled" and not worth testing. Screw you Jenkins I'm merging it anyway!

@julianoes julianoes merged commit 67c6cfa into develop Jan 9, 2019
@julianoes julianoes deleted the info-extend-uuid branch January 9, 2019 09:52
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.

4 participants