Ardupilot User Guide
This chapter will describe how to run ArduPilot on Pixhawk V6X and Pixhawk V6X v2®.
load firmware
NOTE
Pixhawk V6X v2 supports firmware AP4.7.0 or later (4.7.3 or later is recommended); the Pixhawk V6X v2 board type is CUAV-V6X-v2.
Online burning firmware:
- Connect the Controller to the computer,
- open the ground station
- click the "SETUP" "install firmware" >select the firmware type you need"
- wait for the burning to complete.

Load local firmware
The following is the latest stable official ArduPilot firmware.
TIP
For Pixhawk V6X v2, the standard firmware and the DShot firmware are identical..
The following Pixhawk V6X v2 firmware is compiled based on the stable release of AP4.6.3:
NOTE
The latest stable ArduPilot firmware is recommended; if you need the older stable 4.6.X firmware, please select the CUAV-compiled 4.6.3 firmware.
- Select to load custom firmware
- select local firmware file

UART MAP
- SERIAL0 -> USB
- SERIAL1 -> UART7 (Telem1) (Contains CTS and RTS )
- SERIAL2 -> UART5 (Telem2) (Contains CTS and RTS)
- SERIAL3 -> USART1 (GPS1)
- SERIAL4 -> UART8 (GPS2)
- SERIAL5 -> USART2 (Telem3) (Contains CTS and RTS)
- SERIAL6 -> UART4 (User)
- SERIAL7 -> USART3 (Debug)
- SERIAL8 -> USB (MAVLink, can be used for SLCAN with protocol change)
RC input
Use a special cable (the cable has a label) to connect the remote control receiver. The SBUS/DSM receiver is connected to the DSM/SBUS interface, and the PPM receiver is connected to the PPM interface; for CRSF and the receiver with the telemetry bidirectional protocol, it needs to be connected to the UART interface, such as Serial6 (UART4).
Here is the setup tutorial:
SERIAL6_PROTOCOLset to 23;- FPort:
SERIAL6_OPTIONSset to 15; - CRSF:
SERIAL6_OPTIONSset to 0; - SRXL2:
SERIAL6_OPTIONSset to 4,And only connect the TX pin.
NOTE
Any UART can be used for RC system connections in ArduPilot also, and is compatible with all protocols except PPM. See Radio Control Systems for details.
PWM Output
Pixhawk V6X® supports up to 16 PWM outputs (M1~M8, A1~A8). All 16 outputs support all normal PWM output formats. A1~A8 support DShot and BDshot.
The 8 FMU PWM outputs are divided into 4 groups:
- A1~A4 in group1
- A5~A6 in group2
- A7~A8 in group1
NOTE
FMU outputs within the same group need to use the same output rate and protocol. If any output in a group uses DShot, then all outputs in that group are Dshot.
GPIOs
A1~A8 can be used as GPIO (relay, button, RPM, camera shutter trigger (level), etc.). To use them, you need to set the output SERVOx_FUNCTION to -1 (GPIO).
The numbering of the GPIOs for PIN variables in ArduPilot is:
FMU pins:
- A1:50
- A2:51
- A3:52
- A4:53
- A5:54
- A6:55
- A7:56
- A8:57
Others GPIO:
FMU_CAP1:58NFC_GPIO:59
Analog inputs
Pixhawk V6X® has 3 analog inputs (ADC6.6V, ADC3.3V, Rssi)
- ADC6.6-> 12
- ADC3.3-> 13
- RSSI-> 103
Battery Monitoring
Pixhawk V6X® comes standard with CAN PMU lite ammeter (Dronecan), please connect it to Power C1/Power C2 instead of Power 1/Power2 (I2C/SMBUS)
You need to set the following parameters:
BATT_MONITORset to 8.CAN_P1_DRIVERset to 1.CAN_P2_DRIVERset to 1.
NOTE
Do not attempt to set up the I2C power monitor for the Pixhawk V6X using the Mission Planner SETUP-> optional hardware > battery monitor tab.
Analog power monitor
Digital power modules are more accurate and reliable (such as CAN PMU lite), Pixhawk V6x is not recommended to use analog power modules; If you do need to use it, connect the hardware as shown (Take HV_PM as an example):

You need to set the following parameters in the Mission Plannner parameter table:
BATT_MONITORset to 4.BATT_VOLT_PINset to 12 (ADC6.6).BATT_VOLT_MULTset to 18 (HV_PM).BATT_CURR_PINset to 13 (ADC3.3).BATT_AMP_PERVLTset to 24 (A/V,HV_PM).
GPS/RTK Configuration
See GPS and RTK Module Setup for configuration instructions.
Airspeed Sensor Configuration
See Airspeed Sensor for configuration instructions.
Accelerometer/Gyroscope/Compass Calibration
See Sensor Calibration for calibration instructions.
Compass
Inside the Pixhawk V6X® is an RM3100 magnetic compass. Generally, the flight control is located inside the drone, and the magnetic field environment is more complicated. It is reasonable to use an external compass (such as one on a GPS) as the primary compass; always ensure that the external compass is placed in preference to the internal compass.
If your compass is set up like this:

Please set the external compass as the first compass according to the following figure.

I2C Protocol hardware
The Pixhawk V6X kit includes a UART->I2C cable and CAN/I2C interposer board for transferring I2C devices (e.g. MS5525 airspeed meter, LED status light, etc).
Ethernet Setup
See Ethernet Configuration for setup instructions.
Building ArduPilot Firmware
../waf configure --board=CUAV-V6X-v2
./waf copter --upload
NOTE
Most users do not need to compile firmware. They can directly write firmware online through the ground station.

