# SETUP WITH PX4

#### **1. Hardware Setup** <a href="#bkmrk-1.-hardware-setup" id="bkmrk-1.-hardware-setup"></a>

Connect the G-Hadron UART to the Telem2 on the PX4 systems<br>

<figure><img src="https://3309772875-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnikHUDUd2JXqkOsnOi7l%2Fuploads%2FqY9h1clvzXofJXWBaUQU%2Fimage.png?alt=media&#x26;token=aee1a106-0150-4da6-9bb4-1dab466fd89d" alt=""><figcaption></figcaption></figure>

#### **2. Setting on the remote control** <a href="#bkmrk-2-2c-setting-on-the-re" id="bkmrk-2-2c-setting-on-the-re"></a>

G-Hadron is compatible with the Remote Control (RC) that supports the QGroundControl app (QGC). In this manual, all settings are made on Herelink Remote Control, the other controller does the same.

**SBUS channel settings**

G-Hadron needs to set up 2 channels to control the gimbal: one channel is for controlling rotation, and the other is for choosing the controlling axis.

**Set up channels controlling the gimbal**

Gimbal rotation control channel: CH6 (or any channels), use the wheel button on the Herelink remote:

<figure><img src="https://3309772875-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnikHUDUd2JXqkOsnOi7l%2Fuploads%2FeOb5lwxYrUCaIOrSXDge%2Fimage.png?alt=media&#x26;token=7d387181-4a1e-4fc6-a716-103b16f52167" alt=""><figcaption></figcaption></figure>

Gimbal axis selection channel: CH8 (or any channels), use the camera button on the Herelink remote.

<figure><img src="https://3309772875-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnikHUDUd2JXqkOsnOi7l%2Fuploads%2FSpB9ZOujjtsDWMv4vziI%2Fimage.png?alt=media&#x26;token=eb771ca6-d360-458e-a194-89821639644b" alt=""><figcaption></figcaption></figure>

#### **3. Setting parameters** <a href="#bkmrk-3.-setting-parameter" id="bkmrk-3.-setting-parameter"></a>

**Firmware Requirement**

* Version: update to the latest version.
* Support Mavlink v2 protocol

**Set up the telemetry baud rate**

G-Hadron connects to FC at the baud rate of 115200. In case of connecting G-Hadron to FC at any telemetry, note the telemetry setting at the corresponding baud rate. Example for telemetry 2:

* MAV\_1\_CONFIG: “TELEM 2”
* SER\_TEL2\_BAUD: “115200 8N1"
* MAV\_1\_FORWARD: "1"

**Set mount params**

* MNT\_MODE\_IN: “RC”
* MNT\_MODE\_OUT: “Unknown: 2”
* MNT\_RC\_IN\_MODE: “1”
* MNT\_MAN\_PITCH: “AUX3” // PAN/TILT choose axis
* MNT\_MAN\_ROLL: “AUX2” // Zooming, High: Zoom in, Neutral: Stop, Low: Zoom out (current: only using mode control by angle)
* MNT\_MAN\_YAW: “AUX1” // PAN/TILT move
* COM\_RC\_IN\_MODE: “Unknown: 3”

**Set RC map channels**

* RC\_MAP\_AUX1: “Channel 6” // set channel 6 to AUX1 (Yaw)
* RC\_MAP\_AUX2: “Channel 7” // set channel 7 to AUX2 (Roll)
* RC\_MAP\_AUX3: “Channel 8” // set channel 8 to AUX3 (Pitch)

#### **4. Setting App QGroundControl** <a href="#bkmrk-c2-a0-0" id="bkmrk-c2-a0-0"></a>

**Setup app QGroundControl**

* Step 1: Turn on Wifi on the remote to be able to download Zio parameter list
* Step 2: Enable UDP from Application Setting -> AutoConnect to the following devices

<figure><img src="https://3309772875-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnikHUDUd2JXqkOsnOi7l%2Fuploads%2FEHbUmDOYfsiosZvvx2M4%2Fimage.png?alt=media&#x26;token=93c81599-5b6c-4561-8b72-5cfbbb271f21" alt=""><figcaption></figcaption></figure>

**Successful connection**

<figure><img src="https://3309772875-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnikHUDUd2JXqkOsnOi7l%2Fuploads%2FI4M1VAmueDL6U5nWGQhS%2Fimage.png?alt=media&#x26;token=7a51866b-bb36-4385-b342-076c85847c49" alt=""><figcaption></figcaption></figure>
