# Using with CubePilot Controller

<div><figure><img src="/files/RQCp07AM4JJjmiUirKtr" alt="" width="375"><figcaption></figcaption></figure> <figure><img src="/files/nCSDEqY6mw4jfTICVkE2" alt="" width="375"><figcaption></figcaption></figure></div>

If you are using the Cubepilot flight controller, you can select the ***DroneCAN version*** or the ***UART*** ***6-pin version.***\
The CAN version will be connected to the CAN1 or CAN2 port, and the UART 6-pin can be connected to the GPS2 port.

### **UART** **6 Pin version**

If using the UART 6-pin version with Cubepilot flight controller and Ardupilot, set **`Serial3_Protocol` to -1** so that Ardupilot will read the GPS2 port for GPS data if there is nothing connected on the GPS1 port.

{% hint style="info" %}
**Note:** This GPS does not have an external safety switch; you should disable the safety switch function on the ground control station application.
{% endhint %}


---

# Agent Instructions: 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:

```
GET https://docs.holybro.com/gps-and-rtk-system/zed-f9p-h-rtk-series/using-with-cubepilot-controller.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
