Files
PX4 Build Bot aa19069c30 New Crowdin updates (#677)
* New translations index.md (Korean)

* New translations payload.md (Korean)

* New translations traffic_management.md (Korean)

* New translations define_xml_element.md (Korean)

* New translations mavlink_version.md (Korean)

* New translations index.md (Korean)

* New translations faq.md (Korean)

* New translations contributing.md (Korean)

* New translations generate_libraries.md (Korean)

* New translations installation.md (Korean)

* New translations mavlink_2.md (Korean)

* New translations message_signing.md (Korean)

* New translations packet_loss.md (Korean)

* New translations serialization.md (Korean)

* New translations wireshark.md (Korean)

* New translations xml_schema.md (Korean)

* New translations crc.md (Korean)

* New translations index.md (Korean)

* New translations howto_requestmessages.md (Korean)

* New translations mission.md (Korean)

* New translations offboard_control.md (Korean)

* New translations parameter.md (Korean)

* New translations timesync.md (Korean)

* New translations arm_authorization.md (Korean)

* New translations battery.md (Korean)

* New translations camera_v1.md (Korean)

* New translations command.md (Korean)

* New translations events.md (Korean)

* New translations gimbal_v2.md (Korean)

* New translations component_metadata.md (Korean)

* New translations index.md (Chinese Simplified)

* New translations payload.md (Chinese Simplified)

* New translations traffic_management.md (Chinese Simplified)

* New translations define_xml_element.md (Chinese Simplified)

* New translations mavlink_version.md (Chinese Simplified)

* New translations index.md (Chinese Simplified)

* New translations faq.md (Chinese Simplified)

* New translations contributing.md (Chinese Simplified)

* New translations generate_libraries.md (Chinese Simplified)

* New translations installation.md (Chinese Simplified)

* New translations mavlink_2.md (Chinese Simplified)

* New translations message_signing.md (Chinese Simplified)

* New translations packet_loss.md (Chinese Simplified)

* New translations serialization.md (Chinese Simplified)

* New translations wireshark.md (Chinese Simplified)

* New translations xml_schema.md (Chinese Simplified)

* New translations crc.md (Chinese Simplified)

* New translations index.md (Chinese Simplified)

* New translations howto_requestmessages.md (Chinese Simplified)

* New translations mission.md (Chinese Simplified)

* New translations offboard_control.md (Chinese Simplified)

* New translations parameter.md (Chinese Simplified)

* New translations timesync.md (Chinese Simplified)

* New translations arm_authorization.md (Chinese Simplified)

* New translations battery.md (Chinese Simplified)

* New translations camera_v1.md (Chinese Simplified)

* New translations command.md (Chinese Simplified)

* New translations events.md (Chinese Simplified)

* New translations gimbal_v2.md (Chinese Simplified)

* New translations component_metadata.md (Chinese Simplified)

* New translations common.md (Korean)

* New translations common.md (Chinese Simplified)
2026-03-10 12:15:23 +11:00

5.0 KiB

Battery Protocol

MAVLink provides a number of messages for providing battery information:

The messages should be sent individually for each battery in the system (the messages have an instance id field that is used to identify the corresponding battery). It is up to the GCS to provide an appropriate mechanism that allows the user to assess the aggregate battery status on systems that have multiple batteries.

:::info There is no standardized mechanism to report the "aggregate" battery state on a multi-battery system. Note There is no standardized mechanism to report the "aggregate" battery state on a multi-battery system. A GCS is expected to provide enough information from the individual battery reports to allow a user to make a reasonable assessment of vehicle battery status. :::

Message/Enum Summary

消息 描述
BATTERY_STATUS Battery message used for frequent status update - e.g. of current capacity, voltages, faults, etc.
BATTERY_INFO (WIP) Smart battery message used for invariant or infrequently changing data - e.g. battery name, battery full/empty capacity and voltages etc.
Enum 描述
MAV_BATTERY_FAULT Fault/health indications.
MAV_BATTERY_MODE Battery mode.

Battery Components

Batteries that are connected to a flight controller via a non-MAVLink bus are treated as part of the flight controller component. Specifically, the battery messages are emitted with the autopilot system and component ids, and the MAV_TYPE for the type of vehicle.

Smart batteries that are distinct components on the MAVLink network must:

:::info Ground stations (and other components) that are interested in battery messages should differentiate batteries based on BATTERY_STATUS.id/BATTERY_INFO.id. :::

A Note on SYS_STATUS

SYS_STATUS contains three battery information fields: voltage_battery, current_battery, battery_remaining.

On a single-battery system these usually provide the same information as the BATTERY_STATUS message.

On multi-battery systems the values are not standardised, and depend on the flight stack and/or flight stack configuration. For example, a system may report the same information as the first BATTERY_STATUS, allow the user to configure which battery is reported (i.e. with a parameter), report the battery with the lowest remaining capacity.

:::info GCS should not rely on the value of SYS_STATUS. However it cannot be removed because it is used for battery reporting on many legacy systems (e.g. On-screen displays). :::