-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
Global: Initialize the message variable #23560
base: main
Are you sure you want to change the base?
Conversation
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.
A lot of this can be unnecessary when we know we're setting every field, but honestly it's probably still better to be safe than sorry.
How about skip PX4Accelerometer/PX4gyroscope? Those ones are published at quite a high rate (kilohertz) and we know every single field is being set. |
Solved Problem
Inter-task message variables are being used without initialization.
Solution
Initialize the inter-task message variable.
Changelog Entry
None
Alternatives
None
Test coverage
None
Context
None