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

Add version messages #555

Merged
merged 3 commits into from
Nov 15, 2023
Merged

Add version messages #555

merged 3 commits into from
Nov 15, 2023

Conversation

jlaitine
Copy link

This adds version information into uORB topics, allowing easy version information pulishing to ROS (uXRCE) and access from applications in memory protected build modes of PX4

These can be used to transfer version information accross the system (ver, mavlink...)
without link dependency to version libraries

Also this allows easy publishing the autopilot versions to ROS2 over uXRCE-DDS

Signed-off-by: Jukka Laitinen <[email protected]>

/* Bootloader version */

strncpy(ver_str.bl_version, device_boot_info.bl_version, sizeof(ver_str.os_version));

Choose a reason for hiding this comment

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

Is here copy paste error ? sizeof ver_str.os_version should be ver_str.bl_version ?

Copy link
Author

Choose a reason for hiding this comment

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

Yes! Very much so need to fix that.

I was also wondering if it makes more sense to better align with formats in src/lib/version/version.c , and not to invent an own encoding scheme for the binary format things. And maybe move the publishing directly in there as well. I will move this to Draft for now, and try out some different things first, and not jump directly in merging this one.

Copy link
Author

Choose a reason for hiding this comment

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

Tried to move the publishing to common code; but versions related code is so messed up that it doesn't make sense to try to improve it really.

This is good for us, so let's just keep it the way it is.

@jlaitine jlaitine marked this pull request as draft November 13, 2023 07:14
@jlaitine jlaitine force-pushed the add_version_messages branch from 95a417a to 125ef12 Compare November 13, 2023 09:48
@jlaitine jlaitine marked this pull request as ready for review November 13, 2023 09:52
@jlaitine jlaitine merged commit e3fe2a4 into main Nov 15, 2023
20 checks passed
@jlaitine jlaitine deleted the add_version_messages branch December 1, 2023 08:01
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.

3 participants