How to configure of RTK GPS correction broadcast using the normal telemetry radio link for Ardupilot/PX4 UAVs

From UgCS
Jump to: navigation, search

Main Page UgCS How to

This document aims to explain the configuration of RTK GPS correction broadcast using the normal telemetry radio link for Ardupilot/PX4 UAVs. It has two main steps:
1. Configuration of RTK GPS Client
2. Configuration of Ardupilot/PX4 VSM

Both of these steps are explained in detail below.

RTK Client Configuration

To configure the RTK base station, an app called RTK Client is used. This tool was designed for configuration, to read corrections from the RTK base station, and retransmit data as a MAVLink message to multiple consumers.
To start using RTK Client for RTCM broadcast perform the following steps:
1. Connect the base station to the computer and take note of the COM port that was assigned to the base station in Device Manager.
2. Open RTK GPS Client and under Source settings select the correct COM port and baud rate (9600).
3. Set Mav Msg type to GPS_RTCM_DATA.
4. Tick M8P/F9P autoconfig, M8P fw 130+/F9P and in case if radio modules are used to connect the base station to the PC (as opposed to a direct connection via cable) tick 3DR Radio link option.
5. On the right side next to Use UDP client sink set the Host address to and port to 44444.
6. By default the survey accuracy SurveyLn Acc(m) = 2. If necessary, this value can be decreased even further to 1 m, for example.
The app window should now look like this:

RTK Client.png

7. Click on Connect. Red squares next to GPS and Glonass should now turn green and on the right side you should see satellites appearing.
8. Click Restart and wait till the base station accuracy reaches the accuracy set under SurveyIn Acc(m). When this happens, the red square next to Base should turn green, and under Survey In it should say Position is Valid.
The app should now look like this:

RTK CLient1.png

Ardupilot VSM Configuration

Perform the following steps to configure transmission of RTK GPS correction messages over telemetry channel.

1. Open the file vsm-ardupilot.conf. (Notepad++ text editor is recommended since administrator privileges are required to save the file). The file is normally located in:
C:/Program Files (x86)/UgCS/bin/vsm-ardupilot.conf
2. Find the line (using Ctrl+F shortcut): #mavlink.injection.udp_any.1.local_port = 44444
3. Uncomment it by removing the hash sign in the front so it becomes:
mavlink.injection.udp_any.1.local_port = 44444
4. Save the file
5. Make sure to restart Ardupilot VSM if it was running in the background in the Service Manager. If it was closed, this step can be skipped.


The configuration should now be complete. Check in UgCS telemetry window that the vehicle reports the GPS state as RTK Fix or RTK Float.