We have created this tutorial for basic setup when you need to connect your RTK receiver powered by the ZED-F9P module to ArduPilot
We will walk you through the steps required to configure your receiver, ensure proper communication between the devices, and connect RTK corrections to provide centimeter-level accuracy for your Ardupilot project.
Required hardware:
- simpleRTK2B – Basic Starter Kit
- USB to micro-USB cable
- Pixhawk cable set
- Holybro Pixhawk 4 (you can also use your preferred autopilot)
- a PC or laptop
Required software:
- Mission Planner
- u-center ( for M8, M9, F9)
How to connect simpleRTK2B with ArduPilot?
Firstly, configure simpleRTK2B receiver.
- Connect receiver to your PC via the USB port labeled as POWER+GPS with a micro-USB cable.
- Run u-center and connect your receiver to u-center via com port.
- Ensure your RTK receiver has Firmware 1.13. If you need guidance on checking your receiver’s firmware version or updating it to version 1.13, please visit our configuration file page for detailed instructions.
The maximum frequency of Firmware 1.32 for your ZED-F9P receiver is 7Hz. Therefore, we recommend using Firmware 1.13 for a 10Hz update rate in this tutorial. - Go to Tools–>Receiver Configuration…–>Select configuration file simpleRTK2B_FW113_HeadingKit_Rover_10Hz_Ardupilot.txt (right click and select save link as) which we have prepared for you
This configurations file will set your receiver to an output rate of 10Hz and to transmit UBX-PVT messages to the autopilot.. - Click Transfer file–>GNSS to transfer the configuration to your receiver.
- In the menu bar, go to Receiver–>Action–>Save Config to save your configuration.
Secondly, configure ArduPilot.
- Connect your Pixhawk to your computer using a USB to micro-USB cable.
- Make sure your already finish the initial setup of your autopilot. You can check the user guide of ArduPilot to see how to do it.
- Open Mission Planner and connect your Pixhawk to it with COM port.
- ArduRover 4.1
- ArduCopter 4.1
- ArduPlane 4.1
- Go to CONFIG–>Full Parameter List.
Given that the firmware versions might differ from yours, there is a list of all parameters that have been modified compared to the default configuration below:COMPASS_ENABLE,0
COMPASS_USE,0
COMPASS_USE2,0
COMPASS_USE3,0
EK3_MAG_CAL,2
EK3_SRC1_YAW,2
GPS_AUTO_CONFIG,0
GPS_AUTO_SWITCH,0
GPS_POS1_X,-1.25 *This value must contain the distance in meters between antennas. Change sign if heading has a 180deg offset (or swap SMA connectors in simpleRTK2B+heading).
GPS_PRIMARY,1
GPS_RATE_MS, 100
GPS_RATE_MS2, 100
GPS_TYPE,0
GPS_TYPE2,2
SERIAL1_BAUD,460
SERIAL1_OPTIONS,0
SERIAL1_PROTOCOL,5Press Write Params to save your setting.
- After saving all the parameters, make sure you remove the power from your autopilot by disconnecting USB cable to reset your autopilot.
Thirdly, connect the receiver to your autopilot.
- Connect the antenna to your receiver. Make sure your antenna has a good view of the sky for testing.
- Make sure you have the correct JST cable for Pixhawk 4.
- Use the JST connector on the simpleRTK2B receiver and connect it to the TELEM1 port.
- Power the autopilot, you will see GPS2 is connected.
- In Mission Planner, you can check the GPS information by going to CTRL+F–>MAVlink inspector–>GPS2_RAW.
The altitude, latitude and longitude information on Mission Planner should be the same as on u-center.
Finally, connect to RTK corrections.
- Without RTK corrections, simpleRTK2B receiver will have an accuracy of up to 1.5 meters. If you want to achieve centimeter-level accuracy of location, you will need RTK corrections for your receiver. RTK corrections can be received from a local NTRIP correction service or from your own RTK base station.
- Using NTRIP Services: If you have an internet connection in the area where you are going to operate, the simplest way to receive RTK corrections is through an NTRIP correction service because you don’t need any additional equipment. Check tutorial How to send NTRIP corrections to ArduPilot. Follow step 4-8.
- Setting up your own RTK Base Station: If you are in a location without reliable internet access, you can set up your own RTK base station. This will require an additional simpleRTK2B – Basic Starter Kit for it. The base station will transmit RTK corrections to ArduPilot, allowing you to achieve centimeter-level accuracy even in remote areas. Check tutorial How to send RTK base station corrections to ArduPilot. Follow step 1-6.
- In a few seconds, on Mission Planner you will GPS2 status change to rtk Float or rtk Fixed
Now you can enjoy your ArduPilot project with your high precise RTK receiver!