RTK GPS
Last updated
Last updated
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.
:::note Some RTK GPS setups can provide yaw/heading information, as an alternative to the compass:
.
GPS directly output yaw (see table below). :::
PX4 supports the , and the 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).
GPS
Yaw Output
PPK
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
Septentrio dual antenna heading
✓
✓
Septentrio dual antenna heading
✓
✓
✓
✓
✓
:::note Some RTK modules can only be used in a particular role (base or rover), while others can be used interchangeably. :::
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.
:::note 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. :::
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. :::
The RTK GPS connection is essentially plug and play:
Start QGroundControl and attach the base RTK GPS via USB to the ground station. The device is recognized automatically.
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. :::
QGroundControl then starts the RTK setup process (known as "Survey-In").
You can track the progress by clicking the RTK GPS status icon.
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
):
The following settings may need to be changed (using QGroundControl).
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. :::
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:
(F9P)
RTK positioning requires a pair of : a "base" for the ground station and a "rover" for the vehicle.
The connection method and cables/connectors required depends on the selected RTK module (and on the ).
Most are connected via the flight controller's GPS port, in the same way as any other GPS module. Some are connected to the bus (i.e. using ).
See and for more information on wiring and configuration.
The vehicle and ground control laptop must be connected via .
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 below.
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 ).
The RTK GPS settings are specified in the QGroundControl (SettingsView > General Settings > RTK GPS).
Update the telemetry module firmware to the latest version (see ).
Set to 2 (see )
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 and to 0.2.
A second GPS receiver can be used as a backup (either RTK or non RTK). See the section.
The airframe build topic describes an airframe setup with the Here+ RTK GPS and a Pixhawk 3 Pro.
: Developer information about integrating RTK-GPS support into PX4.
(Wikipedia)