Skip to content

zero init radio bridge packets#397

Merged
nickwitten merged 1 commit into
mainfrom
dev/nick/zero-init-packets
May 22, 2026
Merged

zero init radio bridge packets#397
nickwitten merged 1 commit into
mainfrom
dev/nick/zero-init-packets

Conversation

@nickwitten
Copy link
Copy Markdown
Contributor

Zero initialize radio packets so that garbage isn't sent in fields that aren't explicitly set.

@chachmu
Copy link
Copy Markdown
Contributor

chachmu commented May 22, 2026

My understanding is that ROS Jazzy already initializes the data in the message type even without using braces, but it doesn't hurt to be explicit about it. Are you actually seeing issues caused by this?

@barulicm
Copy link
Copy Markdown
Contributor

My understanding is that ROS Jazzy already initializes the data in the message type even without using braces, but it doesn't hurt to be explicit about it. Are you actually seeing issues caused by this?

This PR is initializing the radio packet struct, which is not a ROS message type.

@chachmu
Copy link
Copy Markdown
Contributor

chachmu commented May 22, 2026

🤦 I keep forgetting the radio bridge internal types aren't ROS messages

@nickwitten nickwitten merged commit 7758726 into main May 22, 2026
1 check passed
@nickwitten nickwitten deleted the dev/nick/zero-init-packets branch May 22, 2026 04:07
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