ArduPilot simpleRTK2B+heading configuration + external corrections

Heading ardupilot check

This tutorial is useful for you if you want to use the simpleRTK2B+heading kit with external RTK corrections sent via MissionPlanner/QGroundControl.

Important things before start:

  • This tutorial is based on the simpleRTK2B+heading Basic Starter Kit, if you have a different hardware you may need to apply some changes in this tutorial.
    We have prepared another tutorial for the simpleRTK3B Heading.
  • The configurations files (see Step 2 and Step 3) for the GNSS receivers will set them at an output rate of 5Hz, with UBX-RELPOSNED and UBX-PVT sent to the autopilot.
  • simpleRTK2B (big board) acts as a base in the moving base configuration
  • simpleRTK2Blite (small board) acts as a rover in the moving base configuration
  • We have validated the tutorial with this autopilot:
    • Holybro Pixhawk4
  • We have validated the tutorial with this firmware version:
    • ArduCopter 4.1.5
  • Ardupilot programmers introduced restrictive conditions to let your autopilot use GNSS based heading, here a few of them:
    • You need good RTK fix so it is mandatory to place both antennas in a good location (outdoors, no trees, no high buildings around).
      If you try to follow this tutorial inside your house with the antennas close to your window, it will not work.
    • Place both antennas away from each other (distance between antennas should be >30cm and <5m).
      If you place the antennas next to each other, it will not work.
      Place the antennas in the X axis of your rover (forward direction). You can change this later.
    • Place both antennas in a plane parallel to your autopilot plane (i.e. if your autopilot is horizontal, place both antennas at the same height above ground).
      If the antennas are not placed at the same height level with respect your plane/rover/copter you will need to set the parameter GPS_POS1_Z, otherwise it will not work
  • Do not connect the GNSS receivers with the autopilot yet, we will configure everything independently and connect everything afterwards

Step 1: load simpleRTK2B (aka big board) configuration

  • Connect the simpleRTK2B to your PC via the POWER+GPS microUSB connector
  • Run u-center and connect to the receivers
  • Go to Tools > Receiver Configuration … > Select configuration file simpleRTK2B_FW113_HeadingKit_extcorrections_simpleRTK2B_5Hz-00.txt
  • Click Transfer file -> GNSS
  • Go to View > Messages View > UBX > CFG > CFG > Select Save current configuration and click Send button

Step 2: load simpleRTK2Blite (aka small board) configuration

  • Make sure the simpleRTK2Blite board is mounted on top of the simpleRTK2B board
  • Connect the simpleRTK2Blite to your PC via the POWER+XBEE microUSB connector
  • Run u-center and connect to the receivers
  • Go to Tools > Receiver Configuration … > Select configuration file  simpleRTK2B_FW113_HeadingKit_extcorrections_simpleRTK2Blite_5Hz-00.txt
  • Click Transfer file -> GNSS
  • Go to View > Messages View > UBX > CFG > CFG > Select Save current configuration and click Send button

Step 3: load ArduPilot configuration file
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_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, 200
GPS_RATE_MS2, 200
GPS_TYPE,17
GPS_TYPE2,18
SERIAL1_BAUD,460
SERIAL1_OPTIONS,0
SERIAL1_PROTOCOL,5
SERIAL2_BAUD,460
SERIAL2_OPTIONS,0
SERIAL2_PROTOCOL,5

Step 4: reset your autopilot

  • After saving all the parameters make sure you remove the power from your autopilot

Step 5: connect the heading kit to your autopilot

  • Use the JST connector on the simpleRTK2B (big board) and connect it to the Telem1 port.
  • Use the JST connector on the simpleRTK2Blite (small board) and connect it to the Telem2 port.
Ardupilot ardusimple heading check

Again, remember if:

  • Fix type is not RTK fix
  • Antenna distance is not within 20% of the GPS1_POS_X parameter
  • Autopilot attitude does not match antenna height difference

The GNSS based yaw will not work properly.

Want to learn more about GPS/RTK?

1. Our engineering team will contact you to solve any questions
2. We will keep you updated about promotions and new product releases
3.You will only hear from us when we have important news, we won’t spam your email

Chat with us
Chat with us
Questions, doubts, issues? We're here to help you!
Connecting...
None of our operators are available at the moment. Contact us at info@ardusimple.com, we always answer.
Our operators are busy. Contact us at info@ardusimple.com, we always answer.
:
:
:
Have you got question? Write to us!
:
:
This chat session has ended