Files
PX4-Autopilot/docs/en/msg_docs/BatteryInfo.md
PX4BuildBot be784e21f7 docs: auto-sync metadata [skip ci]
Co-Authored-By: PX4 BuildBot <bot@px4.io>
2026-05-27 02:57:43 +00:00

41 lines
1.6 KiB
Markdown

---
pageClass: is-wide-page
---
# BatteryInfo (UORB message)
Battery information.
Static or near-invariant battery information.
Should be streamed at low rate.
**TOPICS:** battery_info
## Fields
| Name | Type | Unit [Frame] | Range/Enum | Description |
| ------------------------------------------- | ---------- | ------------ | ---------- | ------------------------------------------------------------------------------------------ |
| <a id="fld_timestamp"></a>timestamp | `uint64` | us | | Time since system start |
| <a id="fld_id"></a>id | `uint8` | | | Must match the id in the battery_status message for the same battery |
| <a id="fld_serial_number"></a>serial_number | `char[32]` | | | Serial number of the battery pack in ASCII characters, 0 terminated (Invalid: 0 All bytes) |
## Source Message
[Source file (GitHub)](https://github.com/PX4/PX4-Autopilot/blob/main/msg/BatteryInfo.msg)
::: details Click here to see original file
```c
# Battery information
#
# Static or near-invariant battery information.
# Should be streamed at low rate.
uint64 timestamp # [us] Time since system start
uint8 id # Must match the id in the battery_status message for the same battery
char[32] serial_number # [@invalid 0 All bytes] Serial number of the battery pack in ASCII characters, 0 terminated
```
:::