Episode 6: GNSS and PPK

My understanding of GNSS technology is quite limited, and I would consider myself more of an end user than an expert. It is indeed quite far from my usual field of expertise, which is perception sensors. However, knowing the vehicle’s exact position was essential for this project, and will be just as important for many upcoming projects. So, I had to get at least a basic understanding of how it works.

I have to admit, I still find it fascinating that signals coming from satellites orbiting some 20,000 km above the Earth can make it possible to determine a receiver’s position with centimetre-level accuracy!

But how does it actually work?

Well, let me try to explain it in very simple terms, and please forgive me for a few shortcuts along the way!

Each satellite visible to the receiver broadcasts information about its own position and the exact time at which the signal was transmitted. The receiver measures the time it takes for the signal to arrive. By multiplying this time delay by the speed of light, it can estimate the distance to the satellite (known as the pseudorange):

Distance = Speed of light × (Reception time − Transmission time)

Where:

  • Speed of light = 299,792,458 m/s
  • Signal travel time = approximately 67 ms for a satellite at an altitude of 20,000 km.

With signals from multiple satellites, the receiver can calculate its position through a process called trilateration.
But if we look more closely at the previous equation, we quickly encounter a major challenge: even a tiny timing error can have a huge impact on the calculated distance. For example, an error of just 1 µs translates into approximately 300 metres of error! And this is where things get interesting.

The satellites are equipped with extremely accurate atomic clocks, while the receiver relies on a much cheaper and less accurate quartz oscillator. We therefore cannot assume that the receiver’s clock is perfectly synchronized with the satellite clocks.
As a result, we actually have four unknowns to determine:

  • X, Y, Z: the three coordinates of the receiver’s position.
  • dt: the receiver’s clock offset (the difference between its clock and the satellite system time).

Fortunately, each satellite provides one independent measurement, giving us one equation per satellite.

P_i = √((X_i − X)² + (Y_i − Y)² + (Z_i − Z)²)  +  c·dt          i = 1 … n,  n ≥ 4 (satellites)

One important point: the receiver’s clock error is common to all satellite measurements. This means it can be estimated and corrected simultaneously with the receiver’s position.
The equations themselves are not linear (they involve square roots), so solving them requires an iterative process. The receiver starts with an initial position estimate and progressively refines it until the solution converges. Generally, having more satellites improves the accuracy and reliability of the solution, and can also help convergence.
The result of this process is what we call a Single Point Positioning (SPP) solution, typically providing an accuracy in the range of 1–3 metres under good conditions.

But how do we go from metres down to centimetres?
Well, the principle remains similar, but instead of relying only on the travel time of the signal, GNSS can also use the carrier phase.
Rather than measuring the distance based on the signal’s travel time, we measure it by counting the cycles of the radio wave itself.
And these waves are incredibly small:

  • L1: approximately 19.0 cm per cycle.
  • L2: approximately 24.4 cm per cycle.

The receiver can measure the fractional part of a cycle with millimetre-level precision. However, there is one catch: it does not initially know how many complete cycles separate the satellite and the receiver.
This unknown integer number of cycles is called the integer ambiguity (N).
Once this ambiguity has been resolved, the carrier-phase measurement becomes extremely precise, potentially reaching millimetre-level measurement precision.
This is what we call a Fixed solution.

A standalone receiver cannot reliably resolve the integer ambiguity (N). There are simply too many sources of error affecting the distance measurements: satellite clock and orbit errors, ionospheric and tropospheric delays can all introduce errors of several metres.

This is where a second receiver comes into play, called the base station.

The base station is installed at a precisely known position, relatively close to the rover (the receiver mounted on the vehicle). Since both receivers observe the same satellites and are relatively close to each other, they experience very similar errors.
By differencing their observations, many of these common errors can be cancelled out. This makes it possible to resolve the integer ambiguities and obtain a much more accurate position.

There are two ways to do this:

  • RTK (Real-Time Kinematic): The base station streams its observations to the rover in real time, typically through a radio link or the internet. When using the internet, this is commonly done through an NTRIP caster.
  • PPK (Post-Processed Kinematic): The observations from both the rover and the base station are recorded and processed afterwards.

For this project, I didn’t need an accurate position in real time. RTK would also have required an NTRIP caster subscription and a reliable internet connection. Instead, I used the Raspberry Pi to record the raw GNSS observations from the rover and retrieved data from a publicly available reference station in my city.

I then used RTKLIB to post-process the data. By processing the observations in both forward and backward directions, I could compare the two solutions. When both directions agree, it provides additional confidence in the fixed solution.

However, there are still situations where the solution remains in Float mode rather than reaching Fix. This is likely due to signal degradation or multipath caused by buildings, bridges, and other obstacles, as well as disagreements between the forward and backward processing results.

There is another important detail: the position provided by GNSS corresponds to the antenna’s location, not necessarily the vehicle’s reference point. In my case, I needed the position of the rear axle, so an additional coordinate transformation was required to account for the antenna’s position relative to the vehicle.

Finally, to address the remaining gaps and improve the continuity of the position estimate, I combined the PPK solution with the IMU and vehicle speed measurements in an Extended Kalman Filter (EKF).

This sensor fusion approach allows the vehicle’s position and motion to be continuously estimated, even when GNSS measurements become unreliable or temporarily unavailable, for example, when driving under a bridge.

And this is how GNSS positioning, combined with a little sensor fusion, can provide a centimetre-level trajectory of the vehicle at a very low price!

PPK alone versus PPK with INS

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *