-
Notifications
You must be signed in to change notification settings - Fork 14.6k
BatteryStatus.msg - docs update #24789
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
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.
Thanks for having a stab. I think you opened the can of worms. This message needs to be revised, it's on my list... battery info, verify the fields make sense and have actual high rate use.
It's why I started with a less debated message in #24662 with of course also much less value.
@MaEtUgR Excellent. The MAVLink equivalent that needs to be published is https://mavlink.io/en/messages/common.html#BATTERY_INFO I also want to publish this https://mavlink.io/en/messages/development.html#BATTERY_STATUS_V2 |
4be7331
to
eda3384
Compare
@MaEtUgR I think this is good for another look. I updated the top of file comment and merged my suggestions. There are open questions, but they are around specific docs, not "the doc format". This changes no information, so we're net better off. I guess we should create issues against things like #24789 (comment) |
aead84d
to
288bcc6
Compare
288bcc6
to
e1f3332
Compare
@MaEtUgR This is good to go - I plan to self-merge without approval tomorrow. But I'd prefer other eyes. |
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.
I had started earlier, but this message needs extensive cleanup and I got sidetracked. These are my immediate comments. This is a good step forward and we’ll need to keep iterating with the battery beyond the documentation changes 👍
Co-authored-by: Matthias Grob <maetugr@gmail.com>
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.
Thank you for addressing my comments.
Let's not hold this back because of details even though it will change again anyways. As I wrote it's a very good documentation improvement step 🙏
Jumping in here without having read any of the previous conversation. We spent a lot of time on the DroneCAN battery messages and I would consider them to be the "definitive reference". I would at least match the fields/names to the DroneCAN spec PR for reference, the messages haven't changed |
Thanks @MaEtUgR |
@dakejahl Generally that's my goal. I'd just make sure we only carry fields in uORB that currently provide any value. I started with the serial number in this pr: #24960 It matches the definition of the DSDL you linked. I'll follow up with more cleanup and adaption of the fields such that we can review more easily and stay on top. |
I'm sorry, I didn't see that the messages check in CI failed on the last commit: My suggestion is that I finish #24960 which will fix the problem because it includes bumping the version and a translation that deals with the different field order correctly 🏃 |
This fixes up the BatteryStatus UORB topic to match the evolving doc standard (for similar, see #24662).
Solution
[@enum <value>]
to mark allowed values[<value>]
to mark units[@range <minValue>,<maxValue>]
to mark ranges - inclusive[@invalid <value>]
to mark the invalid/not-supplied valueChangelog Entry
For release notes:
Other comments
@MaEtUgR See inline notes