Skip to content

RTK GPS

Real Time Kinematic (RTK) GNSS/GPS systems provide centimeter-level accuracy, allowing PX4 to be used in applications like precision surveying (where pinpoint accuracy is essential).

This feature requires QGroundControl running on a laptop/PC and a vehicle with a WiFi or Telemetry radio link to the ground station laptop.

Some RTK GNSS setups can provide yaw/heading information, as an alternative to the compass:

支持的 RTK 设备

PX4 supports the u-blox M8P, u-blox F9P and the Trimble MB-Two GPS, and products that incorporate them.

The RTK compatible devices below that are expected to work with PX4 (it omits discontined devices). The table indicates devices that also output yaw, and that can provide yaw when two on-vehicle units are used. It also highlights devices that connect via the CAN bus, and those which support PPK (Post-Processing Kinematic).

DeviceGPSCompassDroneCANGPS YawDual F9P GPS HeadingPPK
ARK RTK GPSF9PICM42688p
CUAV C-RTK GPSM8P/M8N
CUAV C-RTK2F9P
CUAV C-RTK 9Ps GPSF9PRM3100
CUAV C-RTK2 PPK/RTK GNSSF9PRM3100
CubePilot Here+ RTK GPSM8PHMC5983
CubePilot Here3 CAN GNSS GPS (M8N)M8PICM20948
Drotek SIRIUS RTK GNSS ROVER (F9P)F9PRM3100
Femtones MINI2 ReceiverFB672, FB6A0
Freefly RTK GPSF9PIST8310
Holybro H-RTK F9P UltralightF9PIST8310
Holybro H-RTK F9P Helical or BaseF9PIST8310
Holybro DroneCAN H-RTK F9P HelicalF9PBMM150
Holybro H-RTK F9P Rover LiteF9PIST8310
Holybro DroneCAN H-RTK F9P RoverF9PBMM150
Holybro H-RTK M8P GNSSM8PIST8310
Holybro H-RTK Unicore UM982 GPSUM982IST8310
LOCOSYS Hawk R1MC-1612-V2b
LOCOSYS Hawk R2MC-1612-V2bIST8310
mRo u-blox ZED-F9 RTK L1/L2 GPSF9P
Septentrio AsteRx-RIBAsteRxSeptentrio dual antenna heading
Septentrio mosaic-gomosaic X5 / mosaic HSeptentrio dual antenna heading
SIRIUS RTK GNSS ROVER (F9P)F9P
SparkFun GPS-RTK2 Board - ZED-F9PF9P
Trimble MB-TwoF9P

Notes:

  • ✓ or a specific part number indicate that a features is supported, while ✗ or empty show that the feature is not supported. "?" indicates "unknown".
  • Where possible and relevant the part name is used (i.e. ✓ in the GPS column indicates that a GPS module is present but the part is not known).
  • Some RTK modules can only be used in a particular role (base or rover), while others can be used interchangeably.
  • The list may omit some discontinued hardware that is still supported. For example CubePilot Here+ RTK GPS is discontinued and may be removed from the list in a future release. Check earlier versions if a discontinued module is not mentioned here.

Positioning Setup/Configuration

RTK positioning requires a pair of RTK GNSS devices: a "base" for the ground station and a "rover" for the vehicle.

In addition you will need:

  • A laptop/PC with QGroundControl (QGroundControl for Android/iOS do not support RTK)
  • A vehicle with a WiFi or Telemetry radio link to the laptop.

QGroundControl with a base module can theoretically enable RTK GPS for multiple vehicles/rover modules. At time of writing this use case has not been tested.

Hardware Setup

Rover RTK Module (Vehicle)

The connection method and cables/connectors required depends on the selected RTK module (and on the flight controller).

Most are connected via the flight controller's GPS port, in the same way as any other GPS module. Some are connected to the CAN bus (i.e. using DroneCAN).

See documentation for the selected device, general GNSS Hardware/Configuration Setup, and DroneCAN for more information on wiring and configuration.

Base RTK Module (Ground)

Connect the base module to QGroundControl via USB. The base module must not be moved while it is being used.

TIP

Choose a position where the base module won't need to be moved, has a clear view of the sky, and is well separated from any buildings. Often it is helpful to elevate the base GPS, by using a tripod or mounting it on a roof.

Telemetry Radio/WiFi

The vehicle and ground control laptop must be connected via wifi or a radio telemetry link.

The link must use the MAVLink 2 protocol as it makes more efficient use of the channel. This should be set by default, but if not, follow the MAVLink2 configuration instructions below.

RTK Connection Process

The RTK GPS connection is essentially plug and play:

  1. Start QGroundControl and attach the base RTK GPS via USB to the ground station. 电脑会自动识别设备。
  2. Start the vehicle and make sure it is connected to QGroundControl.

TIP

QGroundControl displays an RTK GPS status icon in the top icon bar while an RTK GPS device is connected (in addition to the normal GPS status icon). The icon is red while RTK is being set up, and then changes to white once RTK GPS is active. You can click the icon to see the current state and RTK accuracy.

  1. QGroundControl then starts the RTK setup process (known as "Survey-In").

    测量是一个获得基站准确位置的设置过程。 这个过程通常会需要几分钟(在达到RTK 设置中指定的最小时间和精度后结束)。

    你也可以点击 RTK状态按钮查看。

    survey-in

  2. 测量完成:

    • The RTK GPS icon changes to white and QGroundControl starts to stream position data to the vehicle:

      RTK streaming

    • Vehicle GPS switches to RTK mode. The new mode is displayed in the normal GPS status icon (3D RTK GPS Lock):

      RTK GPS Status

Configuring GPS as Yaw/Heading Source

GPS can be used as a source for yaw fusion when using modules where yaw output is supported by the device (e.g. Trimble MB-Two) or when using some RTK GPS Setups with Dual u-blox F9P.

When using GPS for yaw fusion you will need to configure the following parameters:

ParameterSetting
GPS_YAW_OFFSETThe angle made by the baseline (the line between the two GPS antennas) relative to the vehicle x-axis (front/back axis, as shown here).
EKF2_GPS_CTRLSet bit position 3 "Dual antenna heading" to 1 (i.e. add 8 to the parameter value).

TIP

If using this feature, all other configuration should be setup up as normal (e.g. RTK Positioning).

Optional PX4 Configuration

The following settings may need to be changed (using QGroundControl).

RTK GPS settings

The RTK GPS settings are specified in the QGroundControl General Settings (SettingsView > General Settings > RTK GPS).

RTK GPS Setup

These settings define the minimum duration and minimum accuracy for completing the RTK GPS setup process (known as "Survey-In).

TIP

You can save and reuse a base position in order to save time: perform Survey-In once, select Use Specified Base Position and press Save Current Base Position to copy in the values for the last survey. The values will then persist across QGC reboots until they are changed.

MAVLink2

The MAVLink2 protocol must be used because it makes more efficient use of lower-bandwidth channels. This should be enabled by default on recent builds.

To ensure MAVLink2 is used:

Tuning

You may also need to tune some parameters as the default parameters are tuned assuming a GPS accuracy in the order of meters, not centimeters. For example, you can decrease EKF2_GPS_V_NOISE and EKF2_GPS_P_NOISE to 0.2.

Dual Receivers

A second GPS receiver can be used as a backup (either RTK or non RTK). See the EKF2 GPS Configuration section.

Further Information