> For the complete documentation index, see [llms.txt](https://badland-batteries.gitbook.io/b/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://badland-batteries.gitbook.io/b/12s-17000mah-15c-user-manual/using-the-battery-with-qgroundcontrol-and-px4.md).

# Using the Battery with QGroundControl and PX4

These instructions are for using QGroundControl with a flight controller running PX4. These instructions assume the user has knowledge about using QGroundControl and PX4.

**Setup**

Ensure that your flight controller is connected to the battery over CAN.

Open QGroundControl and connect to your flight controller.

Click the Q icon in the upper left and then click “Vehicle Configuration” > “Parameters” and set the following parameters:

* Set UAVCAN\_ENABLE to 2 (“Sensors Automatic Config”) and reboot your flight controller. *NOTE:* Some users may need a different setting for their setup.
* Set UAVCAN\_SUB\_BAT to 1 (“Raw data”) and reboot your flight controller.

You will now see battery information on the fly view toolbar.

<div align="left"><figure><img src="https://content.gitbook.com/content/RwXRyCo3ZLdiOjgpnvtt/blobs/q9l1EhgNC261dblKiC7B/i35%20q%20toolbar%20with%20battery.png" alt="" width="375"><figcaption></figcaption></figure></div>

*NOTE:* A way to see some additional information is to click the Q icon and go to “Analyze Tools” > “MAVLink Inspector” > “BATTERY\_STATUS.”

<div align="left"><figure><img src="https://content.gitbook.com/content/RwXRyCo3ZLdiOjgpnvtt/blobs/TrVaUFbaxRDJaHtPTF18/i36%20q%20mavlink%20inspector.png" alt="" width="375"><figcaption></figcaption></figure></div>

For safety, be sure to also configure the battery-related parameters and settings as needed according to QGroundControl and PX4 documentation. If you click the Q icon and go to “Vehicle Configuration” > “Safety,” you can configure the drone to automatically land or return when the battery gets to a certain state of charge.

**Setting Parameters**

(Parameter details are covered in the section “[Parameter Details](/b/12s-17000mah-15c-user-manual/parameter-details.md).”)

This battery is not currently compatible with setting parameters in QGroundControl.

**Updating Firmware**

Battery firmware cannot be upgraded from QGroundControl.

**Additional Resources**

DroneCAN Related Configuration\
<https://docs.px4.io/main/en/dronecan/>

Safety (Failsafe) Configuration\
<https://docs.px4.io/main/en/config/safety>
