RTK post-processing on /positioning solves a base and a rover file epoch by epoch from broadcast orbits, like a field RTK receiver would have done. It gives the track on the map and the plots, kinematic positions, and the coordinate of a static session when precise orbits are not out yet (about a day after the observations); once they are, a static session's coordinate comes from the static baseline instead. /campaign's network mode uses it the same way as a fallback.
Observation model
Each satellite contributes one L1-band signal: GPS and QZSS L1 C/A, Galileo E1 (pilot or combined), GLONASS L1 C/A, BeiDou B1I or else B1C. Single differences between rover R and base B cancel the satellite clock; double differences against a reference satellite r (the highest of its signal group) cancel the receiver clocks:
Double differences are formed only within a signal group (constellation and tracking code; BeiDou-3 apart from BeiDou-2), so only like signals are differenced. On short baselines the ionosphere cancels and is not modelled; on long ones it is estimated (below). The troposphere T is modelled at each receiver separately — Saastamoinen with a standard atmosphere (relative humidity 0.7) at that receiver's latitude and height, mapped by 1/sin e — and differenced, so two receivers at different heights see their different zenith delays (about 0.3 mm per metre). A is the receiver antenna correction (below); satellite antenna offsets cancel.
GLONASS double differences are formed in metres with each satellite's own wavelength. The receiver clock cancels exactly; the inter-channel bias between two receivers does not, but is constant while lock holds and goes into the float ambiguity. That is why GLONASS ambiguities stay float.
Each rover epoch is paired with the nearest base epoch up to 15 s away, and the base is modelled at its own epoch: satellite positions at its transmission times, and the satellite clock's change between the two epochs. A 5 Hz rover can therefore use a 1 Hz base, and a 1 Hz rover a 30 s one. On a DJI M300 flight at 5 Hz, 44 m from its base, compared with a commercial post-processed trajectory, fixed epochs agree to 0.2 cm horizontally and 0.5 cm vertically (median) with a 1 Hz base, and 0.7 / 0.7 cm with the base thinned to 30 s.
Long baselines
Beyond about 10 km the ionosphere no longer cancels: a centimetre or more of differential delay goes into the position, mostly the height. A static session whose baseline is longer than 8 km, or a kinematic one longer than 20 km — the length comes from a code solution on the first epochs — therefore runs a second model. Each satellite adds a second signal (GPS L2, Galileo E5a, QZSS L2, BeiDou B3I or B2I; GLONASS stays on L1), and the filter gains two kinds of state:
- Ionosphere — one between-receiver zenith delay per satellite, at 1575.42 MHz, mapped with a single layer at 350 km. It enters code with + and phase with −, scaled by (1575.42 MHz / f)², which is what separates it from the geometry on two frequencies. Its prior (3 cm) and random walk (10⁻⁴ m/√s) are per 10 km of baseline, as in RTKLIB, with the random walk ten times tighter than RTKLIB's: looser states weakened the fixes on 10–50 km.
- Troposphere — the rover's zenith wet delay relative to the base, one state (σ 5 cm, random walk 1 cm/√h, Chao mapping), on top of the modelled differential troposphere.
The limits come from the EPN baselines. Static, on seven pairs between 8.6 and 16.9 km, the long model beat L1 alone in every week (TLMF–TLSE, 8.7 km: 20.4 → 8.4 mm; FFMJ–KLOP, 15.1 km: 19.6 → 8.2 mm), and from 16 km on it is two to five times better, in 24-hour sessions and in 1- and 4-hour ones alike. The exception is CEBR–MADR (10 km), which it makes worse (10.5 → 19.4 mm). Kinematic, each epoch against the stations' known positions, the long model fixes less often up to 17 km (CEBR–MADR 98 → 68 % of epochs), and from 24 km on more often and closer: EIJS–WARE (32 km) 58 → 44 mm over all epochs, MATE–SNIK (53 km) 78 → 95 % fixed and 139 → 54 mm, IGMI–GARI (128 km) 29 → 74 % fixed and 324 → 106 mm. Below the limits the model is the single-frequency one above, unchanged.
Float filter and integer fixing
- States — the rover position (static: constant; kinematic: re-initialised each epoch with σ 30 m) and one float double-difference ambiguity per satellite and signal (new: σ 30 cycles; random walk 10⁻⁴ cycles/√s; dropped after 10 s unseen); on long baselines also the ionosphere and troposphere states above. When the reference satellite changes, the ambiguities are re-mapped algebraically, so nothing is lost.
- Weights — per receiver σ²(1 + 1/sin²e) with σ = 0.3 m for code and 3 mm for phase; the full double-difference covariance (rows sharing a reference are correlated). Two relinearisations per update.
- Slips and outliers — a reset on loss of lock (lock time going back), a satellite dropped when its code innovation exceeds 30 m, and an ambiguity re-initialised when phase and code diverge by more than 5 m. Files carry no lock times, so in post-processing a slip detector on each receiver supplies them: it takes the file's loss-of-lock flags and, with two frequencies, a jump of more than 5 cm in the geometry-free combination against its prediction from the two epochs before. Many receivers flag only a few of their slips; without this, slips under the 5 m gate went unnoticed and bent static solutions in height (EPN IENG–TORI: 14 mm high, 6 mm with it).
- Fixing — after every float update, the ambiguities and their joint covariance go to LAMBDA (a port of RTKLIB's lambda.c). The best candidate is accepted when the ratio of the second-best to the best is at least 3. If the full set fails, the lowest-elevation ambiguity is dropped and the search repeated, down to half the candidates and never below four. The fixed position is the float one conditioned on the integers; the filter is not changed (RTKLIB's “instantaneous” mode), so a wrong fix does not propagate.
Receiver antennas
RTK differences each frequency on its own, so it needs each band's receiver phase-centre offset and elevation-dependent variation separately, not the ionosphere-free combination PPP uses. Both receivers' corrections come from IGS20 and are projected onto the line of sight together with the marker-to-ARP height. With the same antenna type at both ends they cancel; on mixed-antenna baselines they matter.
- Uncalibrated band — many antennas are calibrated for GPS (and GLONASS) only. A band without a calibration takes the nearest GPS one: Galileo E1 and BeiDou B1 take L1, Galileo E5a/E5 L5 (else L2), the other bands L2. Before this fallback (fixed 16 November 2026), Galileo on such an antenna got no correction while GPS on the same receiver did, which put the offset (~9 cm in height for one antenna) into the baseline.
- Uncalibrated radome — the same antenna without a radome (NONE), as the IGS does.
- Unknown antenna — when either type is not in IGS20, phase-centre corrections are skipped for both and the result says so; antenna heights are still applied.
DGNSS
A code-only solution can be chosen instead: double-differenced pseudoranges with the full covariance, iterated weighted least squares per epoch, metre-level. Within a carrier-phase run, an epoch updated from code alone is marked DGNSS.
Range
With the long-baseline model, the EPN baselines below stay within about two centimetres up to 128 km; broadcast orbits and the estimated atmosphere put them at decimetres from a few hundred kilometres. For the best coordinate of a long static session, the static baseline from precise orbits (2–9 mm on the same pairs) or PPP is the method to use.
A moving rover is a different matter, because every epoch stands alone. Against the EPN stations' known positions, each 30 s epoch solved kinematically: up to 3 km, 0.1 % of fixed epochs are more than 5 cm off; from 5 to 17 km, 1 to 19 % (median 3-D error 1.4–3.2 cm); from 24 to 128 km, with the long model, 8 to 24 % (median 1.8–3.7 cm). Few are more than 10 cm off (at most 3 %). They are not blunders in the integer search: the fixed position stays within a few centimetres of a float one that the remaining differential ionosphere has already moved by 5–20 cm. They are mostly in North and height, and most frequent in the late morning. A stricter fix test threw away good fixes as fast as bad ones, and fix-and-hold (feeding the fixed integers back into the filter) made the errors larger, so neither is used. For a moving rover more than about 10 km from its base, read “fixed” as 3–5 cm rather than 1–2 cm, and occupy a point statically when it needs better.
Defaults
| Setting | Default | Note |
|---|---|---|
| Orbits and clocks | Broadcast ephemeris | The day’s BKG BRDC file unless a navigation file is given |
| Signals | One L1-band signal per satellite | GPS/QZSS L1 C/A, Galileo E1, GLONASS L1 C/A, BeiDou B1I (else B1C) |
| Baselines over 8 km (static) or 20 km (kinematic) | Two frequencies, ionosphere and troposphere estimated | Plus GPS L2, Galileo E5a, QZSS L2, BeiDou B3I/B2I; length from a code solution |
| Ionosphere state σ / random walk | 3 cm / 10⁻⁴ m/√s per 10 km | Zenith, per satellite, single-layer mapping at 350 km |
| Relative zenith wet delay σ / random walk | 5 cm / 1 cm/√h | Chao wet mapping |
| Mode | Static | Kinematic selectable |
| Elevation cut-off | 15° on /positioning | The engine’s own default is 10°; /campaign’s fallback uses 10° |
| Code σ / phase σ per receiver at zenith | 0.3 m / 3 mm | Variance σ²(1 + 1/sin²e) |
| Ambiguity fixing | Instantaneous, every epoch | Fix not fed back into the filter |
| Ratio test | ≥ 3 | |
| Partial fixing | Drop lowest first, down to half the candidates | Never fewer than 4 ambiguities |
| GLONASS ambiguities | Float only | |
| New ambiguity σ / random walk | 30 cycles / 10⁻⁴ cycles/√s | |
| Kinematic position reset σ | 30 m per epoch | |
| Outlier and slip gates | Code 30 m; phase–code divergence 5 m | Plus lock-time / loss-of-lock resets; files: geometry-free jump > 5 cm |
| Differential troposphere | Saastamoinen at each receiver’s height | |
| Receiver antennas | IGS20 per-frequency PCO + PCV, both ends | When both types are in IGS20; antenna heights always |
| Base/rover epoch matching | Within 0.5 s |
Where it is in the code
Source
-
src/positioning/rtk.ts— RtkFloatEngine (EKF on double-differenced carrier and code, signal groups, slip handling, reference switching, instantaneous LAMBDA fixing) and solveDgnss (code-only) -
src/positioning/rtk-postprocess.ts— postProcessRtk: base/rover epoch pairing, the long-baseline choice and the batch loop -
src/positioning/rtk-antenna.ts— per-frequency receiver antenna model, GPS-band and NONE-radome fallbacks (rtkGpsFallback) -
src/positioning/tropo-saastamoinen.ts— Saastamoinen delay with a standard atmosphere at the receiver’s height -
src/positioning/lambda.ts— LAMBDA / MLAMBDA
Tests
-
test/rtk.test.ts— DGNSS recovers an exact baseline, highest reference satellites, gross-error rejection; the float filter converges to the exact baseline and re-maps ambiguities exactly on a reference switch; with two frequencies and the ionosphere estimated it recovers a baseline under centimetres of differential ionosphere that biases the plain model -
test/rtk-fix.test.ts— lambdaSearch against brute force; integer fixing in the engine -
test/rtk-antenna.test.ts— per-frequency offsets; GPS-band fallback for an uncalibrated system and NONE for an uncalibrated radome; the same antenna cancels; a simulated mixed-antenna baseline is recovered -
test/rtk-postprocess.test.ts— a recorded NovAtel OEM719 base/rover pair: static solution near the surveyed rover, integer-fixed epochs, an uncalibrated antenna’s height applied, code-only mode, the model chosen by baseline length
Validation
- TU Delft — DELF00NLD and DLF100NLD, 14.32 m apart on a surveyed baseline: 95 % of epochs fixed at both 30 s and 1 s sampling, and at 30 s 98 % of fixes within 5 cm of the surveyed baseline.
- Wettzell — the median of the fixed epochs agrees with the static baseline from precise orbits to 1.5 / 3.0 / 3.0 mm East / North / Up.
- EPN baselines — the same 13 baselines and seven days (GPS week 2297) as for the static baselines, against EUREF's weekly solution:
| Baseline | Length (km) | 16 Nov 2026 (mm) | 3-D RMS (mm) |
|---|---|---|---|
| WTZR–WTZS | 0.1 | 5.2 | 3.5 |
| MET3–METG | 2.8 | 6.5 | 6.5 |
| IENG–TORI | 5.6 | 21.6 | 8.8 |
| CEBR–MADR | 10.4 | 11.3 | 19.4 |
| BADH–FFMJ | 15.8 | 21.5 | 7.6 |
| AXPV–MARS | 23.7 | 121 | 13.2 |
| EIJS–WARE | 31.9 | 16.7 | 3.3 |
| MATE–SNIK | 53.0 | 52 | 19.2 |
| IGMI–GARI | 128 | 194 | 22.1 |
| DGOR–SNIK | 242 | 266 | 89 |
| ONSA–MAR6 | 470 | 489 | 352 |
3–22 mm up to 128 km. Since 16 November: slip detection took IENG–TORI from 21.6 to 8.8 mm, the filter fix (the ambiguity update had counted twice) AXPV–MARS from 121 to 32 mm, and the long-baseline model everything from 16 km on, by two to five times — but CEBR–MADR (10 km), which it now also solves, from 10.5 to 19.4 mm. In week 2430 (August 2026) the same pairs give 4–22 mm. Earlier fixes are in these figures too: the troposphere at each receiver's own height (gnss-js 2.49) took MATE–SNIK, with a large height difference, from 542 to 75 mm, and the antenna-band fallback CEBR–MADR from 40.6 to 11.3 mm (MADR's antenna is calibrated for GPS and GLONASS only).
More on the validation page and in Methods.