-
Notifications
You must be signed in to change notification settings - Fork 13.6k
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
battery_status.msg: remove unused fields #22938
Conversation
@sfuhrer From @dagar in #22875 (comment) when I recently updated the BATTERY_INFO message:
So what would be good to do is to split this up. Ultimately we'd like to be able to stream this out on two MAVLink messages:
Any chance that can have that kind of update/split of the uorb topics (and yes, still deleting anything else)? |
fa97a65
to
3aeda59
Compare
@MaEtUgR @hamishwillee I brought back the fields that are actually getting filled by PX4 in the battery module. Could this already get in like that as an intermediate clean up?
So we would need the uORB topic to act as middle layer between the UAVCAN message and MAVLink? Then yes, I guess that could work, though I would first really make sure we need all these fields. |
@sfuhrer Not my call on this but ...
This deletes the following.
The
Yes, that is the intent. Essentially we have synced UAVCAN and MAVLink messages - or at least very close. There are a few extra fields on MAVLink that UAVCAN weren't interested in, but we kept because the current BATTERY_STATUS uses them. In summary, I'm OK with these changes, but I'd love to see two uORB topics and an implementation of BATTERY_STATUS_V2. I'll do it myself at some point if no one else does. |
Signed-off-by: Silvan Fuhrer <[email protected]>
3aeda59
to
5429f4f
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.
These fields are useless and not even filled or logged.
I think we can remove more of the other fields on top. A lot were just added because either SMBUS or DroneCAN or Cyphal have them defined but we only log them and only if you use either of these systems and they contain useful information. It's mostly a waste in my eyes.
Signed-off-by: Silvan Fuhrer <[email protected]>
Solved Problem
All these fields in the battery message aren't filled or used anywhere in PX4, so I don't see why they should be in the mainline PX4. Seemed to been introduced as they get published by some power module over UAVCAN. Do we need to have battery_status in sync with the UAVCAN message?
I find all these empty fields quite annoying when debugging battery stuff, as they distract form the important ones. And it's empty weight in the log files.