RTK GPS

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

You will need:

  • A pair of (supported) RTK GPS devices (a "base" for the ground station and a "rover" for the vehicle)
  • 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 can theoretically enable RTK GPS for multiple vehicles (provided they each have a rover module). At time of writing this use case has not been tested.

Supported RTK Devices

PX4 supports the u-blox M8P GPS and products that incorporate it. The following RTK-compatible devices have been tested.

Some RTK modules can only be used in a particular role (base or rover), while others can be used interchangeably.

Hardware setup

Rover RTK Module (Vehicle)

Connect the vehicle-based module to the flight controller's GPS port (in the same way as any other GPS module).

The actual cables/connectors required will depend on the flight controller and selected RTK module (see documentation for the selected device for more information).

Base RTK Module (Ground)

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

Choose a position where it 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 MAVLink2 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. The device is recognized automatically.
  2. Start the vehicle and make sure it is connected to QGroundControl.

    An RTK GPS status icon is displayed 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.

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

    Survey-In is a startup procedure to get an accurate position estimate of the base station. The process typically takes several minutes (it ends after reaching the minimum time and accuracy specified in the RTK settings).

    You can track the progress by clicking the RTK GPS status icon.

  4. Once Survey-in completes:

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

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

      RTK GPS Status

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).

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

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.

Vehicle Setup Example

The airframe build topic DJI Flamewheel 450 with distance sensor and RTK GPS describes an airframe setup with the Here+ RTK GPS and a Pixhawk 3 Pro.

© PX4 Dev Team. License: CC BY 4.0            Updated: 2018-06-16 09:20:31

results matching ""

    No results matching ""