In this tutorial we will guide you through setting up the simpleRTK3B Compass (powered by the Unicore UM982 RTK module) to provide high-precision GNSS-based heading in your ArduPilot project.
Required hardware:
- simpleRTK3B Compass
- 2 × Lightweight helical GNSS Tripleband + L-band antenna (IP67)
- 2 × SMA antenna RF cable extender (these items are needed particularly for helical antenna)
- USB to USB-C cable
- USB to micro-USB cable
- Pixhawk cable set
- Holybro Pixhawk4 (you can also use your preferred autopilot)
- a PC or laptop
Required software:
- Mission Planner
- Uprecise (It is a ZIP folder. The unzip password is 1234)
Important things before start:
- This tutorial is based on the simpleRTK3B Compass powered by Unicore UM980. If you have a different hardware you may need to apply some changes in this tutorial.
We have prepared other tutorials for the simpleRTK2B Heading kit (u-blox) and simpleRTK3B Heading kit (Septentrio). - We have validated the tutorial with Holybro Pixhawk4
- We have validated the tutorial with these firmware versions:
- ArduRover 4.5.2
- ArduCopter 4.5.2
- ArduPlane 4.5.2
How to setup and connect the UM982 RTK Receiver with ArduPilot?
Firstly, configure simpleRTK3B Compass (UM982) receiver.
- Connect both GNSS antennas to your receiver. Make sure the antennas have a good view of the sky for testing functionality. Or you won’t be able to see satellites view and signal.
- Connect the simpleRTK3B Compass to your PC via the USB port labeled with POWER+GPS using USB-C cable.
- Open Uprecise. Select the COM port (If you don’t know which COM port check the device manager of your PC). At baud rate choose 115200. Press Connect.
- Use the following commands to transmit NMEA messages to COM1 for debugging and send NMEA messages to Pixhawk via COM3 at 1HZ.
If a higher frequency is needed, adjust the commands (e.g., set GNGGA COM1 0.1 for a 10 Hz frequency).
GNGGA COM1 1
GNCSV COM1 1
GNCSA COM1 1
UNIHEADINGA COM1 1
GNGGA COM3 1
GNRMC COM3 1
GPHDT COM3 1
SAVECONFIG
- At menu bar go to Attitude, you will see heading value shown as Azimuth.
Secondly, configure the ArduPilot.
- Connect your Pixhawk to your computer using a USB to micro-USB cable.
- Open Mission Planner and connect your Pixhawk to it with COM port with baud rate 115200.
- Go to CONFIG–>Full Parameter List. Since the firmware versions may be different to yours, here is a list of all the parameters modified with respect to the default configuration: COMPASS_ENABLE,0
COMPASS_USE,0
COMPASS_USE2,0
COMPASS_USE3,0
EK3_MAG_CAL,5
EK3_SRC1_YAW,2
GPS_AUTO_CONFIG,0
GPS_AUTO_SWITCH,0
GPS_RATE_MS, 100
GPS_TYPE,5
SERIAL1_BAUD,115
SERIAL1_PROTOCOL,5
Press Write Params to save your settings
- 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 RTK UM982 heading board to your autopilot.
- Use the JST connector on the simpleRTK3B Compass and connect it to the TELEM1 port.
- Unicore heading result is the angle from True North to the Baseline of the master antenna (labelled as GPS1 on board) to the slave antenna (labeled as GPS2) in a clockwise direction. Pitch angle refers to the angle of the car or drone relative to the horizontal plane.
Ensure that both antennas are positioned in a completely open area with a clear view of the sky, free from any windows or buildings that might obstruct its line of sight.
Heading accuracy can be improved by increasing the baseline length (distance between the 2 antennas). In general minimum 1 meter distance (baseline length) is required to achieve satisfactory sub-degree precision under non-ideal condition.
In practical, this is not possible for many vehicles or drones. With a good installation with 0.5 meters, you can get decent results. With 0.3 meters it’s possible to get heading, but it’s output sometimes will be a bit noisy. But it might be good enough for some applications.
- Power the autopilot. Open mission planner. Press CTRL+F. Go to MAVlink inspector–>GPS_RAW_INT–>yaw. The value should match the Azimuth value in UPrecise.
- The Yaw value of the AHRS in Mission Planner will slowly synchronize with the GPS_RAW_INT Yaw and Azimuth values in UPrecise. This process may take a few minutes.
- Note that the EKF takes into account the gyroscope readings, so if you rotate the autopilot without turning the entire vehicle frame (where the antennas are mounted), the heading may temporarily change. However, after a few seconds, it will correct itself and align with the GNSS-calculated heading.
For the best results during dynamic testing, ensure that both the Pixhawk and the GNSS antennas are mounted on the same device or surface.
- To achieve centimeter-level precision in positioning, correction data must be transmitted to the rover. There are two main methods for delivering this correction data:
- Using online correction service (NTRIP): In this method, the rover receives real-time corrections through the NTRIP (Networked Transport of RTCM via Internet Protocol) protocol. This method is convenient for areas with reliable internet access and eliminates the need for setting up a physical base station.
For guidance on integrating NTRIP corrections with ArduPilot, you can follow ArduSimple’s tutorial on sending NTRIP corrections to ArduPilot. - Setting up a Base Station: This method is useful in areas where there is no internet access or NTRIP network available, but it requires extra equipment and setup. You can refer to ArduSimple’s tutorial on sending RTK base station corrections to ArduPilot for detailed instructions
- Using online correction service (NTRIP): In this method, the rover receives real-time corrections through the NTRIP (Networked Transport of RTCM via Internet Protocol) protocol. This method is convenient for areas with reliable internet access and eliminates the need for setting up a physical base station.
If you want to follow this tutorial, we have all the products in stock and ready to be shipped:
-
Cables
SMA antenna RF cable extender
From 13,00€ This product has multiple variants. The options may be chosen on the product page