> For the complete documentation index, see [llms.txt](https://agamrobotics.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://agamrobotics.gitbook.io/docs/analog-power-modules-apm/generic/px4-setup.md).

# PX4 Setup

Set the following [parameters](https://docs.px4.io/main/en/advanced_config/parameters#finding-updating-parameters):

* [`BAT1_I_CHANNEL`](https://docs.px4.io/v1.16/en/advanced_config/parameter_reference#BAT1_I_CHANNEL) `8`
* [`BAT1_V_CHANNEL`](https://docs.px4.io/v1.16/en/advanced_config/parameter_reference#BAT1_V_CHANNEL) `10`&#x20;
* [`BAT1_V_DIV`](https://docs.px4.io/main/en/advanced_config/parameter_reference#BAT1_V_DIV) and [`BAT1_A_PER_V`](https://docs.px4.io/main/en/advanced_config/parameter_reference#BAT1_A_PER_V) to appropriate values as provided by the APM vendor.
* [`BAT1_I_CAPACITY`](https://docs.px4.io/main/en/advanced_config/parameter_reference#BAT1_I_CAPACITY) and [`BAT1_N_CELLS`](https://docs.px4.io/main/en/advanced_config/parameter_reference#BAT1_N_CELLS) to the appropriate values depending on the battery you are using.

<figure><img src="https://3691885427-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGIonFSNWlaPDhB0WFrf6%2Fuploads%2FYHny9IcZqdnf7Ih3eGkW%2FWhatsApp%20Image%202026-04-02%20at%2018.56.26.jpeg?alt=media&amp;token=68d91087-aad6-410b-8a7b-edaeb2a3ff22" alt=""><figcaption><p>Example parameters on QGroundControl with PX4</p></figcaption></figure>

The GC application should now show you battery information.

<figure><img src="https://3691885427-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FGIonFSNWlaPDhB0WFrf6%2Fuploads%2FHXCcBf4HgwQhC7fvAJJ8%2FWhatsApp%20Image%202026-04-02%20at%2018.57.20.jpeg?alt=media&amp;token=09aa1fc1-2546-439d-8838-968210e7e1cf" alt=""><figcaption></figcaption></figure>
