> 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-x20-rtk-gps/ardupilot-instructions.md).

# ArduPilot Instructions

AP\_Periph support for the ARK X20 RTK GPS is in review — [ArduPilot PR #33941](https://github.com/ArduPilot/ardupilot/pull/33941) adds the `ARK_X20_GPS` target (board ID 89). Until it merges there are no prebuilt binaries on the ArduPilot firmware server.

## Testing the WIP Firmware

Build AP\_Periph from the PR branch:

```bash
./waf configure --board ARK_X20_GPS
./waf AP_Periph
```

Flash it using either method:

* **Over CAN** — upload `AP_Periph.apj` with the DroneCAN GUI Tool, see our [DroneCAN GUI Tool Guide](/knowledge-base/knowledge-base/dronecan-gui-tool-guide.md). Then set `FLASH_BOOTLOADER` to `1` in the node's parameters so future updates use the AP\_Periph bootloader.
* **Over SWD** — flash the combined `AP_Periph_with_bl.hex` with an ST-LINK on the 6-pin debug connector, see the [ST-LINK Flashing Guide](/knowledge-base/knowledge-base/st-link-flashing-guide.md).

## Configuration

With AP\_Periph running, configuration is identical to the [ARK RTK GPS ArduPilot instructions](/products/gps/ark-rtk-gps/ardupilot-instructions.md) — both the single GPS and dual GPS heading setups. Moving baseline heading requires X20P receiver firmware 2.10 or later.


---

# 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-x20-rtk-gps/ardupilot-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.
