> For the complete documentation index, see [llms.txt](https://docs.arkelectron.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.arkelectron.com/products/gps/ark-dan-gps/px4-instructions.md).

# PX4 Instructions

### Firmware Setup <a href="#firmware-setup" id="firmware-setup"></a>

Configure [GPS\_1\_CONFIG ](https://docs.px4.io/main/en/advanced_config/parameter_reference.html#GPS_1_CONFIG)to match the port the ARK DAN GPS is connected to on the flight controller. On the ARK FPV Flight Controller, this is already GPS 1 by default. On the ARK PAB Carrier or ARK Jetson Carrier, this is likely GPS 2 or TELEM/SERIAL 4 depending on which port it is connected to.

Older versions of PX4 will require [this PR](https://github.com/PX4/PX4-Autopilot/pull/24254) backported to start the IIS2MDL magnetometer and [this PR](https://github.com/PX4/PX4-GPSDrivers/pull/181) backported to enable using the L5 band.

#### Sensor Position Configuration <a href="#sensor-position-configuration" id="sensor-position-configuration"></a>

If the sensor is not centered within the vehicle you will also need to define sensor offsets:

* The parameters [EKF2\_GPS\_POS\_X](https://docs.px4.io/main/en/advanced_config/parameter_reference.html#EKF2_GPS_POS_X), [EKF2\_GPS\_POS\_Y](https://docs.px4.io/main/en/advanced_config/parameter_reference.html#EKF2_GPS_POS_Y) and [EKF2\_GPS\_POS\_Z](https://docs.px4.io/main/en/advanced_config/parameter_reference.html#EKF2_GPS_POS_Z) can be set to account for the offset of the ARK DAN GPS from the vehicles center of gravity.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.arkelectron.com/products/gps/ark-dan-gps/px4-instructions.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
