-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
Simplify Battery-related Enum Naming #24265
base: main
Are you sure you want to change the base?
Conversation
f6298af
to
8a3e55b
Compare
f630655
to
9106bf6
Compare
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.
Thanks for making the enum naming more sensible 👍
I increased the version number of the message battery_status
since it's now versioned and this is the first change to the message since that was done. I'm not sure if there's any compatibility issue when changing messages before #24113 @bkueng could you clarify?
This is just a warm up to splitting up the message in #24111
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.
Can you rebase, then you will get the message versioning checks as well.
msg/versioned/BatteryStatus.msg
Outdated
@@ -1,4 +1,4 @@ | |||
uint32 MESSAGE_VERSION = 0 | |||
uint32 MESSAGE_VERSION = 1 |
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.
If you only change constants you don't need to increase the version
1899b90
to
c440b79
Compare
Solved Problem
The battery-related enums (source and state) contain a leading 'BATTERY_' string in the enums's member names. The naming should to be clear enough without that string.
Solution
Remove the leading 'BATTERY_' string in the enums's member names.
Changelog Entry
For release notes:
Simplified battery-related enum naming