Post · 109 min read· pp. 396–450

PVT

The PVT block is the last one in the GNSS-SDR flow graph. Hence, it acts as a signal sink, since the stream of data flowing along the receiver ends here.

The role of a PVT block is to compute navigation solutions and deliver information in adequate formats for further processing or data representation.

It follows a description of the available positioning algorithms and their parameters, the available output formats, and the description of the configuration options for this block.

Positioning modes

The positioning problem is generally stated as

y=h(x)+n ,\begin{equation} \mathbf{y} = \mathbf{h}(\mathbf{x}) + \mathbf{n}~, \end{equation}

where y\mathbf{y} is the measurement vector (that is, the observables obtained from the GNSS signals of a set of mm satellites), x\mathbf{x} is the state vector to be estimated (at least, the position of the receiver’s antenna and the time), h(⋅)\mathbf{h}(\cdot) is the function that relates states with measurements, and n\mathbf{n} models measurement noise. Depending on the models, assumptions, available measurements, and the availability of a priori or externally-provided information, many positioning strategies and algorithms can be devised. It follows a description of the positioning modes available at the RTKLIB_PVT implementation, mostly extracted from the excellent RTKLIB manual.

Single Point Positioning

The default positioning mode is PVT.positioning_mode=Single. In this mode, the vector of unknown states is defined as:

x=(rrT,c⋅dtr)T ,\begin{equation} \mathbf{x} = \left(\mathbf{r}_r^T, c \cdot dt_r\right)^T~, \end{equation}

where rr\mathbf{r}_r is the receiver’s antenna position in an earth-centered, earth-fixed (ECEF) coordinate system (in meters), cc is the speed of light, and dtrdt_r is the receiver clock bias (in seconds).

The measurement vector is defi

y=(Pr(1),Pr(2),Pr(3),...,Pr(m))T .\begin{equation} \mathbf{y} = \left(P_r^{(1)}, P_r^{(2)}, P_r^{(3)}, ..., P_r^{(m)} \right)^T~. \end{equation}

As described in the Observables block, for a signal from satellite ss in the i-th band, the pseudorange measurement Pr,i(s)P_{r,i}^{(s)} can be expressed as:

Pr,i(s)=ρr(s)+c(dtr(tr)−dT(s)(t(s)))+Ir,i(s)+Tr(s)+ϵP .\begin{equation} P_{r,i}^{(s)} = \rho_r^{(s)} + c\left(dt_r(t_r) - dT^{(s)}(t^{(s)}) \right) + I_{r,i}^{(s)} + T_r^{(s)} + \epsilon_P~. \end{equation}

If the receiver obtains pseudorange measurements from the same satellite in different frequency bands, the bands used for each satellite depend on the ionospheric model selected with PVT.iono_model, as described in Band selection below.

Hence, the equation that relates pseudorange measurements to the vector of unknown states can be written as:

h(x)=(ρr(1)+c⋅dtr−c⋅dT(1)+Ir(1)+Tr(1)ρr(2)+c⋅dtr−c⋅dT(2)+Ir(2)+Tr(2)ρr(3)+c⋅dtr−c⋅dT(3)+Ir(3)+Tr(3)⋮ρr(m)+c⋅dtr−c⋅dT(m)+Ir(m)+Tr(m)) .\begin{equation} \mathbf{h}(\mathbf{x}) = \left( \begin{array}{c} \rho_{r}^{(1)} + c \cdot dt_r - c \cdot dT^{(1)} + I_{r}^{(1)} + T_{r}^{(1)} \\ \rho_{r}^{(2)} + c \cdot dt_r - c \cdot dT^{(2)} + I_{r}^{(2)} + T_{r}^{(2)} \\ \rho_{r}^{(3)} + c \cdot dt_r - c \cdot dT^{(3)} + I_{r}^{(3)} + T_{r}^{(3)} \\ \vdots \\ \rho_{r}^{(m)} + c \cdot dt_r - c \cdot dT^{(m)} + I_{r}^{(m)} + T_{r}^{(m)} \end{array} \right)~. \end{equation}

The geometric range ρr(s)\rho_r^{(s)} is defined as the physical distance between the satellite antenna phase center position and the receiver antenna phase center position in the inertial coordinates. For the expression in the ECEF coordinates, the earth rotation effect has to be incorporated. This is known as the Sagnac effect[^Ashby04], and it can be approximated by:

(\begin{equation} \rho_{r}^{(s)} \approx \left| \mathbf{r}_r(t_r) - \mathbf{r}^{(s)}(t^{(s)}) \right| + {\definecolor{dark-orange}{RGB}{255,165,0} \color{dark-orange} \frac{\omega_e}{c}\left(x^{(s)}y_r - y^{(s)}x_r \right)}~, \end{equation}) where ωe\omega_e is the Earth rotation angle velocity (in rad/s).

Earth rotation correction Geometric range and Earth rotation correction [^RTKLIBManual]

Equation h(x)\mathbf{h}(\mathbf{x}) is clearly nonlinear due to the presence of the Euclidean norm operator ∥⋅∥\left\| \cdot \right\|. However, this term can be extended by using Taylor series around an initial parameter vector x0\mathbf{x}_0 as (\mathbf{h}(\mathbf{x}) = \mathbf{h}(\mathbf{x}0) + \mathbf{H}(\mathbf{x}-\mathbf{x}0) + ...), where (\mathbf{H} = \frac{\partial \mathbf{h}(\mathbf{x})}{\partial \mathbf{x}} \bigg\rvert{\mathbf{x} = \mathbf{x}{0} }) is a partial derivatives matrix of h(x)\mathbf{h}(\mathbf{x}) with respect to x\mathbf{x} at (\mathbf{x} = \mathbf{x}_{0}). Assuming that the initial parameters are adequately near the true values and the second and further terms of the Taylor series can be neglected, equation y=h(x)+n\mathbf{y} = \mathbf{h}(\mathbf{x}) + \mathbf{n} can be approximated by (\mathbf{y} \approx \mathbf{h}(\mathbf{x}_0) + \mathbf{H}(\mathbf{x}-\mathbf{x}_0) + \mathbf{n}), and then we can obtain the following linear equation:

y−h(x0)=H(x−x0)+n ,\begin{equation} \mathbf{y} - \mathbf{h}(\mathbf{x}_0) = \mathbf{H}(\mathbf{x}-\mathbf{x}_0) + \mathbf{n}~, \end{equation}

which can be solved by a standard iterative weighted least squares method.

Matrix H\mathbf{H} can be written as:

\labeleq:H−singleH=(−er(1)T1−er(2)T1−er(3)T1⋮⋮−er(m)T1),where er(s)=r(s)(t(s))−rr(tr)∥r(s)(t(s))−rr(tr)∥\begin{equation} \label{eq:H-single} \mathbf{H} = \left( \begin{array}{cc} - {\mathbf{e}_{r}^{(1)}}^T & 1 \\ -{\mathbf{e}_{r}^{(2)}}^T & 1 \\ -{\mathbf{e}_{r}^{(3)}}^T & 1 \\ \vdots & \vdots \\ -{\mathbf{e}_{r}^{(m)}}^T & 1 \end{array} \right), \quad \text{where } \mathbf{e}_r^{(s)} = \frac{\mathbf{r}^{(s)}(t^{(s)}) - \mathbf{r}_r(t_r) }{\left\| \mathbf{r}^{(s)}(t^{(s)}) - \mathbf{r}_r(t_r) \right\|} \end{equation}

and the weighted least squares estimator (LSE) of the unknown state vector is obtained as:

Navigation Solution for Single Point Positioning: Iterative weighted least squares estimator

\labeleq:lsex^i+1=x^i+(HTWH)−1HTW(y−h(x^i))\begin{equation} \label{eq:lse} \hat{\mathbf{x}}_{i+1} = \hat{\mathbf{x}}_{i} + \left( \mathbf{H}^T \mathbf{W} \mathbf{H}\right)^{-1} \mathbf{H}^T \mathbf{W} \left(\mathbf{y} - \mathbf{h}(\hat{\mathbf{x}}_{i}) \right) \end{equation}

For the initial parameter vector x0\mathbf{x}_0 for the iterated weighted LSE, just all 00 are used for the first epoch of the single point positioning. Once a solution obtained, the position is used for the next epoch initial receiver position. For the weight matrix W\mathbf{W}, the RTKLIB_PVT implementation uses:

W=diag(σ1−2,σ2−2,σ3−2,...,σm−2) ,\begin{equation} \mathbf{W} = \text{diag} \left( \sigma_1^{-2}, \sigma_2^{-2}, \sigma_3^{-2}, ..., \sigma_m^{-2} \right)~, \end{equation}
σs2=F(s)Rr(aσ2+bσ2sin⁡(Elr(s)))+σbclock,s2+σion,s2+σtrop,s2+σcbias2\sigma_{s}^{2} = F^{(s)} R_r \left( a_{\sigma}^2 + \frac{b_{\sigma}^2}{\sin \left( El_r^{(s)} \right)} \right) + \sigma_{bclock,s}^2 + \sigma_{ion,s}^{2} + \sigma_{trop,s}^{2} + \sigma_{cbias}^2

where:

  • F(s)F^{(s)} is the satellite system error factor. This parameter is set to F(s)=1F^{(s)} = 1 for GPS and Galileo.
  • RrR_r is the code/carrier‐phase error ratio. This value is set by default to Rr=100R_r = 100, and can be configured with the PVT.code_phase_error_ratio_l1 option.
  • aσ,bσa_{\sigma}, b_{\sigma} is the carrier‐phase error factor aa and bb (in m). They are set by default to aσ=bσ=0.003a_{\sigma} = b_{\sigma} = 0.003 m, and can be configured with the PVT.carrier_phase_error_factor_a and PVT.carrier_phase_error_factor_b options, respectively.
  • Elr(s)El_r^{(s)} is the elevation angle of satellite direction (in rad).
  • σbclock,s\sigma_{bclock,s} is the standard deviation of the broadcast ephemeris and clock error (in m). This parameter is estimated internally from URA (User Range Accuracy) or or similar indicators.
  • σion,s\sigma_{ion,s} is the standard deviation of ionosphere correction model error (in m). This parameter is set to σion=5\sigma_{ion} = 5 m by default (PVT.iono_model=OFF) and σion=0.5⋅Ir,i(s)\sigma_{ion} = 0.5 \cdot I_{r,i}^{(s)} m when the option PVT.iono_model=Broadcast is set in the configuration file.
  • σtrop,s\sigma_{trop,s} is the standard deviation of troposphere correction model error (in m). This parameter is set to σtrop=3\sigma_{trop} = 3 m by default (PVT.trop_model=OFF) and (\sigma_{trop} = 0.3 / \left(\sin(El_r^{(s)}) + 0.1\right)) m when the option PVT.trop_model=Saastamoinen, PVT.trop_model=Estimate_ZTD or PVT.trop_model=Estimate_ZTD_Grad is set in the configuration file.
  • σcbias\sigma_{cbias} is the standard deviation of code bias error (in m). This parameter is set to σcbias=0.3\sigma_{cbias} = 0.3 m.

In addition, two optional terms can extend this error model:

  • An SNR-dependent term, activated when PVT.error_factor_snr is set to a positive value eσe_{\sigma} (in m; ta recommended value is 0.0050.005 m), which adds to the variance a term

    eσ2⋅10 0.1⋅max⁡(SNRmax−C/N0(s), 0) ,e_{\sigma}^2 \cdot 10^{~0.1 \cdot \max \left( \text{SNR}_{\text{max}} - C/N_0^{(s)},~ 0 \right)}~,

    where C/N0(s)C/N_0^{(s)} is the carrier-to-noise density ratio reported by the tracking loop for satellite ss, and SNRmax\text{SNR}_{\text{max}} is a reference value (in dB-Hz) above which no penalty is applied, configurable with PVT.error_snr_max (it defaults to 5252 dB-Hz). It defaults to 0.00.0 (disabled), preserving the elevation-only error model.

  • A receiver-reported standard deviation term, activated when PVT.error_factor_rcv_std is set to a positive value, which weights each observation with the pseudorange / carrier-phase standard deviations reported in the observation structure (fields ready to be populated from the tracking-loop variance estimates). It defaults to 0.00.0 (disabled).

By default, the receiver clock bias estimated in single point positioning is assumed to be common to all GPS-like signals, including QZSS. Setting PVT.estimate_qzss_isb=true adds a separate QZS-GPS inter-system bias to the vector of unknowns. The estimated offset is reported in the RTKLIB solution structure (sol.dtr[4]). Since the extra unknown requires one more satellite in mixed GPS + QZSS epochs, which degrades availability under limited sky visibility, this option defaults to false and should only be enabled in open-sky scenarios with six or more satellites in view.

The estimated receiver clock bias dtrdt_r is not explicitly output, but incorporated in the solution time‐tag. That means the solution time‐tag indicates not the receiver time‐tag but the true signal reception time measured in GPS Time.

Solution validation

The estimated receiver positions described in (\refeq:lse\ref{eq:lse}) might include invalid solutions due to unmodeled measurement errors. To test whether the solution is valid or not, and to reject the invalid solutions, the RTKLIB_PVT applies the following validation tests after obtaining the receiver’s position estimate:

1) Residuals Test

Defining the residuals vector (\boldsymbol{\nu} = \left( \nu_1, \nu_2, \nu_3, ..., \nu_m \right)^T) with:

νs=Pr(s)−(ρ^r(s)+cdt^r−c⋅dT(s)+Ir(s)+Tr(s))σs ,\nu_s = \frac{P_r^{(s)} - \left( \hat{\rho}_r^{(s)} + c \hat{dt}_r - c \cdot dT^{(s)} + I_r^{(s)} + T_r^{(s)} \right)}{\sigma_s}~,

the residuals test is defined as:

νTνm−n−1<χα2(m−n−1)\frac{\boldsymbol{\nu}^T \boldsymbol{\nu}}{m-n-1} < \chi_{\alpha}^2 (m-n-1)

where nn is the number of estimated parameters, mm is the number of measurements, χα2(n)\chi_{\alpha}^2(n) is the chi‐square distribution of degree of freedom nn, and with a significance level of α=0.001\alpha=0.001 (that is, prob>0.001prob > 0.001).

2) GDOP Test

The Geometric Dilution of Precision, defined as (\text{GDOP} = \sqrt{\sigma_{r_{x}}^2 + \sigma_{r_{y}}^2 + \sigma_{r_{z}}^2 + \sigma_{c \cdot dt}^2 }), must be better (that is, lower) than a certain threshold:

GDOP<GDOPthreshold\text{GDOP} < \text{GDOP}_{\text{threshold}}

The threshold value is set by default to (\text{GDOP}_{\text{threshold}} = 30), and it can be configured via the option PVT.threshold_reject_GDOP in the configuration file.

If any of the validation fails, the solution is rejected as an outlier (that is, no solution is provided).

Receiver Autonomous Integrity Monitoring (RAIM)

In addition to the solution validation described above, RAIM (receiver autonomous integrity monitoring) FDE (fault detection and exclusion) function can be activated. If the chi-squared test described above fails and the option PVT.raim_fde is set to 11, the implementation retries the estimation by excluding one by one of the visible satellites. After all of the retries, the estimated receiver position with the minimum normalized squared residuals νTν\boldsymbol{\nu}^T \boldsymbol{\nu} is selected as the final solution. In such a scheme, an invalid measurement, which might be due to satellite malfunction, receiver fault, or large multipath, is excluded as an outlier. Note that this feature is not effective with two or more invalid measurements. It also needs two redundant visible satellites, which means at least 6 visible satellites are necessary to obtain the final solution.

Precise Point Positioning

When the PVT.positioning_mode option is set to PPP_Static or PPP_Kinematic in the configuration file, a Precise Point Positioning algorithm is used to solve the positioning problem. In this positioning mode, the state vector to be estimated is defined as:

x=(rrT,vrT,c⋅dtr,Zr,GNr,GEr,BLCT)T ,\begin{equation} \mathbf{x} = \left( \mathbf{r}_r^T, \mathbf{v}_r^T, c \cdot dt_r, Z_r, G_{N_r}, G_{E_r}, \mathbf{B}_{LC}^T \right)^T~, \end{equation}

where ZrZ_r is ZTD (zenith total delay), GNrG_{N_r} and GErG_{E_r} are the north and east components of tropospheric gradients (see the tropospheric model below) and (\mathbf{B}{LC} = \left( B{r,LC}^{(1)}, B_{r,LC}^{(2)}, B_{r,LC}^{(3)}, ..., B_{r,LC}^{(m)} \right)^T) is the ionosphere‐free linear combination of zero‐differenced carrier‐phase biases (in m), defined below in Equation (\refeq:bias−lc\ref{eq:bias-lc}).

The receiver clock offset c⋅dtrc \cdot dt_r is estimated separately for each GNSS in the solution (GPS, GLONASS, Galileo and BeiDou; QZSS shares the GPS one unless PVT.estimate_qzss_isb=true), so that the time offsets between systems, or a common offset of the Galileo HAS GPS clock corrections, do not bias the solution. This is only present in the next branch of the upstream repository. In GNSS-SDR v0.0.22, all systems but GLONASS share the GPS receiver clock.

The carrier-phase measurements have a receiver clock of their own, estimated as a random walk for each GNSS and frequency band (for each pair of bands, when they are combined as described below). The oscillators of a radio-frequency front end are never exactly at their nominal frequencies, so the carrier phases of a band can drift with respect to its code phases, and with respect to the carrier phases of the other bands, by the same amount for all the satellites: an offset of a fraction of a hertz already amounts to several centimeters per second. That common drift is taken by this state instead of ending up in the position, and the tests applied to the carrier phases (cycle slips and outliers, see below) only look at what departs from the value common to the satellites. This is only present in the next branch of the upstream repository. In GNSS-SDR v0.0.22, code and carrier-phase measurements share the receiver clock.

The Precise Point Positioning measurement model is based on the fact that, according to the phase and code ionospheric refraction, the first order ionospheric effects on code and carrier-phase measurements depend (99.9 %) on the inverse of squared signal frequency fif_i. Thence, dual-frequency receivers can eliminate their effect through a linear combination of pseudorange Pr,i(s)P_{r,i}^{(s)} and phase-range Φr,i(s)\Phi_{r,i}^{(s)} measurements (where the definitions at Observables apply):

Pr,LC(s)=CiPr,i(s)+CjPr,j(s)P_{r,LC}^{(s)} = C_i P_{r,i}^{(s)} + C_j P_{r,j}^{(s)}
Φr,LC(s)=CiΦr,i(s)+CjΦr,j(s)\Phi_{r,LC}^{(s)} = C_i \Phi_{r,i}^{(s)} + C_j \Phi_{r,j}^{(s)}

with Ci=fi2fi2−fj2C_i = \frac{f_i^2}{f_i^2 - f_j^2} and (C_j = \frac{-f_j^2}{f_i^2 - f_j^2}), where fif_i and fjf_j are the frequencies (in Hz) of LiL_i and LjL_j measurements. Explicitly:

Pr,LC(s)=ρr(s)+c(dtr−dT(s))+Tr(s)+ϵP\begin{equation} P_{r,LC}^{(s)} = \rho_{r}^{(s)} + c\left(dt_r - dT^{(s)}\right) + T_{r}^{(s)} + \epsilon_P \end{equation}
Φr,LC(s)=ρr(s)+c(dtr−dT(s))+Tr(s)+Br,LC(s)+dΦr,LC(s)+ϵΦ\begin{equation} \Phi_{r,LC}^{(s)} = \rho_{r}^{(s)} + c\left(dt_r - dT^{(s)}\right) + T_{r}^{(s)} + B_{r,LC}^{(s)} + d\Phi_{r,LC}^{(s)} + \epsilon_{\Phi} \end{equation}

with

\labeleq:bias−lcBr,LC(s)=Ci(ϕr,0,i−ϕ0,i(s)+Nr,i(s))+Cj(ϕr,0,j−ϕ0,j(s)+Nr,j(s))\begin{equation} \label{eq:bias-lc} B_{r,LC}^{(s)} = C_i \left( \phi_{r,0,i} - \phi_{0,i}^{(s)} + N_{r,i}^{(s)} \right) + C_j \left( \phi_{r,0,j} - \phi_{0,j}^{(s)} + N_{r,j}^{(s)} \right) \end{equation}
dΦr,LC(s)=−(Cidr,pco,i+CjCidr,pco,i)Ter,enu(s)++(E(s)(Cidpco,i(s)+Cjdpco,j(s)))Ter(s)++(Cidr,pcv,i(Elr(s))+Cjdr,pcv,j(Elr(s)))++(dpcv,i(s)(θ)+dpcv,j(s)(θ))+−dr,dispTer,enu(s)+(Ciλi+Cjλj)ϕpw\begin{equation} \begin{array}{ccl} d\Phi_{r,LC}^{(s)} & = & - \left( C_i \mathbf{d}_{r,pco,i} + C_j C_i \mathbf{d}_{r,pco,i} \right)^T \mathbf{e}_{r,enu}^{(s)} + \\ {} & {} & + \left( \mathbf{E}^{(s)} \left( C_i \mathbf{d}_{pco,i}^{(s)} + C_j\mathbf{d}_{pco,j}^{(s)} \right) \right)^T \mathbf{e}_r^{(s)} + \\ {} & {} & + \left( C_i d_{r,pcv,i}(El_{r}^{(s)}) + C_j d_{r,pcv,j}(El_{r}^{(s)}) \right) + \\ {} & {} & + \left( d_{pcv,i}^{(s)}(\theta) + d_{pcv,j}^{(s)}(\theta)\right) + \\ {} & {} & - \mathbf{d}_{r,disp}^T \mathbf{e}_{r,enu}^{(s)} +\left( C_i\lambda_i + C_j \lambda_j \right) \phi_{pw} \end{array} \end{equation}

The offsets and variations of the phase centers of the satellite and receiver antennas are applied when their calibrations are provided, as described in Antenna models below. Otherwise, (\mathbf{d}{r,pco,i} = \mathbf{d}{pco,i}^{(s)} = \mathbf{0}) and dr,pcv,i=dpcv,j(s)=0d_{r,pcv,i} = d_{pcv,j}^{(s)} = 0. The correction terms for the Earth tide[^McCarthy04] dr,disp\mathbf{d}_{r,disp} and the phase windup effect[^Kouba01] ϕpw\phi_{pw} are deactivated by default, and can be activated through the PVT.earth_tide and PVT.phwindup options, respectively. The satellites in eclipse, whose attitude departs from the nominal one, are left out of the solution unless PVT.reject_GPS_IIA=0 is set. In GNSS-SDR v0.0.22, they are kept unless PVT.reject_GPS_IIA=1 is set.

The measurement vector is then defined as:

y=(ΦLCT,PLCT)T ,\begin{equation} \mathbf{y} = \left( \boldsymbol{\Phi}_{LC}^T, \mathbf{P}_{LC}^T \right)^T~, \end{equation}

where (\boldsymbol{\Phi}{LC} = \left(\Phi{r,LC}^{(1)}, \Phi_{r,LC}^{(2)}, \Phi_{r,LC}^{(3)}, ..., \Phi_{r,LC}^{(m)} \right)^T) and (\mathbf{P}{LC} = \left( P{r,LC}^{(1)}, P_{r,LC}^{(2)}, P_{r,LC}^{(3)}, ..., P_{r,LC}^{(m)} \right)^T).

The bands combined for each satellite follow the rules described in Band selection below.

The equation h(x)\mathbf{h}(\mathbf{x}) that relates measurements and states is:

h(x)=(hΦT,hPT)T ,\begin{equation} \mathbf{h}(\mathbf{x}) = \left( \mathbf{h}_{\Phi}^T, \mathbf{h}_{P}^T \right)^T~, \end{equation}

where:

hΦ=(ρr(1)+c(dtr−dT(1))+Tr(1)+Br,LC(1)+dΦr,LC(1)ρr(2)+c(dtr−dT(2))+Tr(2)+Br,LC(2)+dΦr,LC(2)ρr(3)+c(dtr−dT(3))+Tr(3)+Br,LC(3)+dΦr,LC(3)⋮ρr(m)+c(dtr−dT(m))+Tr(m)+Br,LC(m)+dΦr,LC(m)) ,\mathbf{h}_{\Phi} = \left( \begin{array}{c} \rho_{r}^{(1)} + c(dt_r - dT^{(1)}) + T_{r}^{(1)} + B_{r,LC}^{(1)} + d\Phi_{r,LC}^{(1)} \\ \rho_{r}^{(2)} + c(dt_r - dT^{(2)}) + T_{r}^{(2)} + B_{r,LC}^{(2)} + d\Phi_{r,LC}^{(2)} \\ \rho_{r}^{(3)} + c(dt_r - dT^{(3)}) + T_{r}^{(3)} + B_{r,LC}^{(3)} + d\Phi_{r,LC}^{(3)} \\ \vdots \\ \rho_{r}^{(m)} + c(dt_r - dT^{(m)}) + T_{r}^{(m)} + B_{r,LC}^{(m)} + d\Phi_{r,LC}^{(m)} \end{array}\right)~,
hP=(ρr(1)+c(dtr−dT(1))+Tr(1)ρr(2)+c(dtr−dT(2))+Tr(2)ρr(3)+c(dtr−dT(3))+Tr(3)⋮ρr(m)+c(dtr−dT(m))+Tr(m)) .\mathbf{h}_{P} = \left( \begin{array}{c} \rho_{r}^{(1)} + c(dt_r - dT^{(1)}) + T_{r}^{(1)} \\ \rho_{r}^{(2)} + c(dt_r - dT^{(2)}) + T_{r}^{(2)} \\ \rho_{r}^{(3)} + c(dt_r - dT^{(3)}) + T_{r}^{(3)} \\ \vdots \\ \rho_{r}^{(m)} + c(dt_r - dT^{(m)}) + T_{r}^{(m)} \end{array}\right)~.

This is again a nonlinear equation that could be solved with the iterative weighted least squares estimator as in the case of the Single Point Positioning case. However, here we want to incorporate some a priori information, such as a basic dynamic model for the receiver, and some statistical knowledge about the status of the troposphere. The Extended Kalman Filter offers a suitable framework for that.

The partial derivatives matrix (\mathbf{H} = \frac{\partial \mathbf{h}(\mathbf{x})}{\partial \mathbf{x}} \bigg\rvert_{\mathbf{x} = \mathbf{x}_{0} }) can be written as:

H(x)=(−DE01DMTI−DE01DMT0) ,\begin{equation} \mathbf{H}(\mathbf{x}) = \left(\begin{array}{ccccc} - \mathbf{DE} & \mathbf{0} & \mathbf{1} & \mathbf{DM}_T && \mathbf{I} \\ -\mathbf{DE} & \mathbf{0} & \mathbf{1} & \mathbf{DM}_T && \mathbf{0} \end{array} \right)~, \end{equation}

where (\mathbf{D} = \left( \begin{array}{ccccc} 1 & -1 & 0 & \cdots & 0 \ 1 & 0 & -1 & \cdots & 0 \ \vdots & \vdots & \vdots & \ddots & \vdots \ 1 & 0 & 0 & \cdots & -1 \end{array} \right)) is known as the single‐differencing matrix, (\mathbf{E} = \left( \mathbf{e}{r}^{(1)}, \mathbf{e}{r}^{(2)}, \mathbf{e}{r}^{(3)}, ..., \mathbf{e}{r}^{(m)} \right)^T) with er(s)\mathbf{e}_{r}^{(s)} defined as in equation (\refeq:H−single\ref{eq:H-single}), and

(\scriptstyle \begin{equation} !!!!!!!!!!! \mathbf{M}T ; = ; \left( \begin{array}{ccc} m{WG,r}^{(1)} \left( El_r^{(1)} \right) & m_{W,r}^{(1)} \left( El_r^{(1)} \right) \cot \left( El_r^{(1)} \right) \cos \left( Az_r^{(1)} \right) & m_{W,r}^{(1)} \left( El_r^{(1)} \right) \cot \left( El_r^{(1)} \right) \sin \left( Az_r^{(1)} \right) \ m_{WG,r}^{(2)} \left( El_r^{(2)} \right) & m_{W,r}^{(2)} \left( El_r^{(2)} \right) \cot \left( El_r^{(2)} \right) \cos \left( Az_r^{(2)} \right) & m_{W,r}^{(2)} \left( El_r^{(2)} \right) \cot \left( El_r^{(2)} \right) \sin \left( Az_r^{(2)} \right) \ m_{WG,r}^{(3)} \left( El_r^{(3)} \right) & m_{W,r}^{(3)} \left( El_r^{(3)} \right) \cot \left( El_r^{(3)} \right) \cos \left( Az_r^{(3)} \right) & m_{W,r}^{(3)} \left( El_r^{(3)} \right) \cot \left( El_r^{(3)} \right) \sin \left( Az_r^{(3)} \right) \ \vdots \ m_{WG,r}^{(m)} \left( El_r^{(m)} \right) & m_{W,r}^{(m)} \left( El_r^{(m)} \right) \cot \left( El_r^{(m)} \right) \cos \left( Az_r^{(m)} \right) & m_{W,r}^{(m)} \left( El_r^{(m)} \right) \cot \left( El_r^{(m)} \right) \sin \left( Az_r^{(m)} \right) \end{array} \right) \end{equation}) is a matrix related to the tropospheric model (see below).

With all those definitions, the Precise Point Positioning solution is computed as follows:

Navigation Solution for Precise Point Positioning: Extended Kalman Filter

  • Time update (prediction):

\labeleq:state−updatex^k∣k−1=Fkx^k−1∣k−1\begin{equation} \label{eq:state-update} \hat{\mathbf{x}}_{k|k-1} = \mathbf{F}_k \hat{\mathbf{x}}_{k-1|k-1} \end{equation}
Σk∣k−1=FkΣk−1∣k−1FkT+Qk\begin{equation} \boldsymbol{\Sigma}_{k|k-1} = \mathbf{F}_k \boldsymbol{\Sigma}_{k-1|k-1} \mathbf{F}_k^T + \mathbf{Q}_k \end{equation}

  • Measurement update (estimation):

Kk=Σk∣k−1Hk(x^k∣k−1)(Hk(x^k∣k−1)Σk∣k−1Hk(x^k∣k−1)T+Rk)−1\begin{equation} \mathbf{K}_k = \boldsymbol{\Sigma}_{k|k-1} \mathbf{H}_k(\hat{\mathbf{x}}_{k|k-1}) \left( \mathbf{H}_k(\hat{\mathbf{x}}_{k|k-1})\boldsymbol{\Sigma}_{k|k-1} \mathbf{H}_k(\hat{\mathbf{x}}_{k|k-1})^T + \mathbf{R}_k \right)^{-1} \end{equation}
x^k∣k=x^k∣k−1+Kk(yk−hk(x^k∣k−1))\begin{equation} \hat{\mathbf{x}}_{k|k} = \hat{\mathbf{x}}_{k|k-1} + \mathbf{K}_k \left( \mathbf{y}_k - \mathbf{h}_k(\hat{\mathbf{x}}_{k|k-1}) \right) \end{equation}
\labeleq:meas−cov−updateΣk∣k=(I−KKHk(x^k∣k−1))Σk∣k−1\begin{equation} \label{eq:meas-cov-update} \boldsymbol{\Sigma}_{k|k} = \left( \mathbf{I} - \mathbf{K}_{K} \mathbf{H}_k \left(\hat{\mathbf{x}}_{k|k-1}\right) \right)\boldsymbol{\Sigma}_{k|k-1} \end{equation}

The transition matrix Fk\mathbf{F}_k models the receiver movement:

  • If PVT.positioning_mode=PPP_Static:

Fk=(I3×3I3×31I3×3Im×m)\begin{equation} \mathbf{F}_k = \left(\begin{array}{ccccc} \mathbf{I}_{3\times 3} & {} & {} & {} & {} \\ {} & \mathbf{I}_{3\times 3} & {} & {} & {} \\ {} & {} & 1 & {} & {} \\ {} & {} & {} & \mathbf{I}_{3 \times 3} & {} \\ {} & {} & {} & {} & \mathbf{I}_{m \times m} \end{array} \right) \end{equation}

  • If PVT.positioning_mode=PPP_Kinematic:

Fk=(I3×3I3×3ΔkI3×31I3×3Im×m)\begin{equation} \mathbf{F}_k = \left(\begin{array}{ccccc} \mathbf{I}_{3\times 3} & \mathbf{I}_{3\times 3} \Delta_k & {} & {} & {} \\ {} & \mathbf{I}_{3\times 3} & {} & {} & {} \\ {} & {} & 1 & {} & {} \\ {} & {} & {} & \mathbf{I}_{3 \times 3} & {} \\ {} & {} & {} & {} & \mathbf{I}_{m \times m} \end{array} \right) \end{equation}

where Δk=tk+1−tk\Delta_k = t_{k+1} - t_k is the time between GNSS measurements, in s.

The dynamics model noise covariance matrix Qk\mathbf{Q}_k is set to:

Qk=(QrQvσc⋅dtr2QTσbias2ΔkIm×m)\begin{equation} \mathbf{Q}_k = \left(\begin{array}{ccccc} \mathbf{Q}_{r} & {} & {} & {} & {} \\ {} & \mathbf{Q}_{v} & {} & {} & {} \\ {} & {} & \sigma_{c \cdot dt_{r}}^2 & {} & {} \\ {} & {} & {} & \mathbf{Q}_{T} & {} \\ {} & {} & {} & {} & \sigma_{bias}^2 \Delta_k \mathbf{I}_{m\times m} \end{array} \right) \end{equation}

with:

  • (\mathbf{Q}r = \mathbf{E}r^T \text{diag} \left( \sigma{re}^2 , \sigma{rn}^2 , \sigma_{ru}^2 \right) \mathbf{E}_r), where Er\mathbf{E}_r is the coordinates rotation matrix from ECEF to local coordinates at the receiver antenna position (defined below), and σre\sigma_{re}, σrn\sigma_{rn} and σru\sigma_{ru} are the standard deviations of east, north, and up components of the receiver position model noises (in m).
    • If the positioning mode is set to PVT.positioning_mode=PPP_Static, these values are initialized to σre=σrn=σru=100\sigma_{re} = \sigma_{rn} = \sigma_{ru} = 100 m in the first epoch and then set to 00 in the following time updates.
    • If the positioning mode is set to PVT.positioning_mode=PPP_Kinematic, these values are set to σre=σrn=σru=100\sigma_{re} = \sigma_{rn} = \sigma_{ru} = 100 m for all time updates.
  • (\mathbf{Q}v = \mathbf{E}r^T \text{diag} \left( \sigma{ve}^2 \Delta_k , \sigma{vn}^2 \Delta_k, \sigma_{vu}^2 \Delta_k \right) \mathbf{E}r), where σve\sigma_{ve}, σvn\sigma_{vn} and σvu\sigma_{vu} are the standard deviations of east, north, and up components of the receiver velocity model noises (in m/s/s\sqrt{s}). In the current implementation, those parameters are set to (\sigma{ve} = \sigma_{vn} = \sigma_{vu} = 0).
  • σc⋅dtr\sigma_{c \cdot dt_{r}} is the standard deviation of the receiver clock offset (in m). This value is set to σc⋅dtr=100\sigma_{c \cdot dt_{r}} = 100 m.
  • (\mathbf{Q}{T} = \text{diag} \left( \sigma{Z}^2 \Delta_k, \sigma_{G_{N}}^2 \Delta_k, \sigma_{G_{E}}^2 \Delta_k \right)) is the noise covariance matrix of the troposphere terms. These values are set to σZ=0.0001\sigma_{Z} = 0.0001, and σGN=σGE\sigma_{G_{N}} = \sigma_{G_{E}} are initialized to σGN=σGE=0.001\sigma_{G_{N}} = \sigma_{G_{E}} = 0.001 m/s\sqrt{s} in the first epoch and then set to (\sigma_{G_{N}} = \sigma_{G_{E}} = 0.1 \cdot \sigma_{Z}) in the following time updates. The default value of σZ=0.0001\sigma_{Z} = 0.0001 m/s\sqrt{s} can be configured with the PVT.sigma_trop option.
  • σbias\sigma_{bias} is the standard deviation of the ionosphere-free carrier-phase bias measurements, in m/s\sqrt{s}. This value is initialized at the first epoch and after a cycle slip to (\sigma_{bias} = 100) m/s\sqrt{s}, and then is set to a default value of σbias=0.0001\sigma_{bias} = 0.0001 m/s\sqrt{s} in the following time updates. This value and can be configured with the option PVT.sigma_bias.
  • (\mathbf{E}_r = \left( \begin{array}{ccc} - \sin(\theta_r) & \cos (\theta_r) & 0 \ -\sin (\psi_r) \cos(\theta_r) & - \sin (\psi_r)\sin(\theta_r) & \cos (\psi_r) \ \cos(\psi_r)\cos(\theta_r) & \cos(\psi_r)\sin(\theta_r) & \sin(\psi_r)\end{array} \right)) is the rotation matrix of the ECEF coordinates to the local coordinates, where ψr\psi_r and θr\theta_r are the geodetic latitude and the longitude of the receiver position.

The measurement model noise covariance matrix Rk\mathbf{R}_k is defined as:

R=(RΦ,LC00RP,LC) ,\begin{equation} \mathbf{R} = \left( \begin{array}{cc} \mathbf{R}_{\Phi,LC} & \mathbf{0} \\ \mathbf{0} & \mathbf{R}_{P,LC} \end{array}\right)~, \end{equation}

where:

RΦ,LC=diag(σΦ,1(1)2,σΦ,1(2)2,σΦ,1(3)2,...,σΦ,1(m)2) ,\mathbf{R}_{\Phi,LC} = \text{diag} \left( {\sigma_{\Phi,1}^{(1)}}^2, {\sigma_{\Phi,1}^{(2)}}^2, {\sigma_{\Phi,1}^{(3)}}^2, ..., {\sigma_{\Phi,1}^{(m)}}^2 \right)~,
RP,LC=diag(σP,1(1)2,σP,1(2)2,σP,1(3)2,...,σP,1(m)2) ,\mathbf{R}_{P,LC} = \text{diag} \left( {\sigma_{P,1}^{(1)}}^2, {\sigma_{P,1}^{(2)}}^2, {\sigma_{P,1}^{(3)}}^2, ..., {\sigma_{P,1}^{(m)}}^2 \right)~,

in which σΦ,1(s)\sigma_{\Phi,1}^{(s)} is the standard deviation of L1 phase‐range measurement error (in m), and σP,1(s)\sigma_{P,1}^{(s)} is the standard deviation of L1 pseudorange measurement error (in m). These quantities are estimated as:

  • σΦ,1(s)2=aσ2+bσ2sin⁡(Er(s))2+σion,s2+σbclock2+σtrop,s2{\sigma_{\Phi,1}^{(s)}}^2 = a_{\sigma}^2 + \frac{b_{\sigma}^2}{\sin(E_r^{(s)})^2} + \sigma_{ion,s}^2 + \sigma_{bclock}^2 + \sigma_{trop,s}^2, where:
    • aσ=0.003a_{\sigma} = 0.003 and bσ=0.003b_{\sigma} = 0.003 are the carrier phase error factors (configurable via PVT.carrier_phase_error_factor_a and PVT.carrier_phase_error_factor_b),
    • σion,s\sigma_{ion,s} is the standard deviation of ionosphere correction model error (in m). This parameter is set to σion=5\sigma_{ion} = 5 m by default (PVT.iono_model=OFF) and (\sigma_{ion} = 0.5 \cdot I_{r,i}^{(s)}) m when the option PVT.iono_model=Broadcast is set in the configuration file.
    • σbclock=30\sigma_{bclock} = 30 m is the standard deviation of the broadcast clock,
    • σtrop\sigma_{trop} is the standard deviation of the troposphere correction model error (in m). This parameter is set to σtrop=3\sigma_{trop} = 3 m when PVT.trop_model=OFF and σtrop,s=0.3sin⁡(Elr(s))+0.1\sigma_{trop,s} = \frac{0.3}{\sin(El_r^{(s)}) + 0.1} m when PVT.trop_model=Saastamoinen, PVT.trop_model=Estimate_ZTD or PVT.trop_model=Estimate_ZTD_Grad.
  • σP,1(s)2=Rr⋅(aσ2+bσ2sin⁡(Er(s))2)+σion,s2+σbclock2+σtrop,s2+σcbias2{\sigma_{P,1}^{(s)}}^2 = R_r \cdot \left( a_{\sigma}^2 + \frac{b_{\sigma}^2}{\sin(E_r^{(s)})^2} \right) + \sigma_{ion,s}^2 + \sigma_{bclock}^2 + \sigma_{trop,s}^2 + \sigma_{cbias}^2, where:
    • Rr=100R_r = 100 (configurable via PVT.code_phase_error_ratio_l1),
    • aσ=bσ=0.003a_{\sigma} = b_{\sigma} = 0.003 m (configurable via PVT.carrier_phase_error_factor_a and PVT.carrier_phase_error_factor_b),
    • σion,s\sigma_{ion,s}, σbclock\sigma_{bclock} and σtrop,s\sigma_{trop,s} defined as above.
    • σcbias\sigma_{cbias} is the standard deviation of code bias error (in m). This parameter is set to σcbias=0.3\sigma_{cbias} = 0.3 m.

Uncombined model

The ionosphere-free combination needs two bands of every satellite, and it multiplies the noise of the measurements by about three. If PVT.iono_model=Estimate_STEC is set in the configuration file, the Precise Point Positioning modes use instead the measurements of each band as they are, and estimate the ionospheric delay of each satellite. This is only present in the next branch of the upstream repository. In GNSS-SDR v0.0.22, that option leaves the ionosphere uncorrected in these positioning modes.

For a satellite ss and each of its bands ii, the measurement model is:

Pr,i(s)=ρr(s)+c(dtr−dT(s))+Tr(s)+γiIr(s)+br,i+ϵP\begin{equation} P_{r,i}^{(s)} = \rho_{r}^{(s)} + c\left(dt_r - dT^{(s)}\right) + T_{r}^{(s)} + \gamma_i I_{r}^{(s)} + b_{r,i} + \epsilon_P \end{equation}
Φr,i(s)=ρr(s)+c(dtr−dT(s))+Tr(s)−γiIr(s)++c⋅dtr,Φ,i+Br,i(s)+dΦr,i(s)+ϵΦ\begin{equation} \begin{array}{ccl} \Phi_{r,i}^{(s)} & = & \rho_{r}^{(s)} + c\left(dt_r - dT^{(s)}\right) + T_{r}^{(s)} - \gamma_i I_{r}^{(s)} + \\ {} & {} & + c \cdot dt_{r,\Phi,i} + B_{r,i}^{(s)} + d\Phi_{r,i}^{(s)} + \epsilon_{\Phi} \end{array} \end{equation}

with γi=(fL1/fi)2\gamma_i = \left( f_{L1} / f_i \right)^2. The states added to the position, the receiver clocks and the troposphere terms are:

  • Ir(s)I_{r}^{(s)}, the slant ionospheric delay of the satellite at the L1 frequency (in m). It starts at the value given by the broadcast model, and then it follows a random walk whose process noise is set by PVT.sigma_iono. In this model it defaults to 0.10.1 m/s\sqrt{s}, the value of the Galileo HAS Reference User Algorithm[^HASRUA], which can be lowered down to 0.0050.005 m/s\sqrt{s} in quiet ionospheric conditions at mid latitudes.
  • br,ib_{r,i}, the code bias of the receiver in the second and third bands of each GNSS with respect to the first one (in m), which is nearly constant.
  • c⋅dtr,Φ,ic \cdot dt_{r,\Phi,i}, the receiver clock of the carrier phases of each GNSS and band, described above.
  • Br,i(s)B_{r,i}^{(s)}, the carrier-phase bias of each satellite and band (in m), with the process noise set by PVT.sigma_bias. It starts again after a cycle slip in that band.

The pseudorange of each band is corrected with its broadcast group delay, or with its code bias in the satellites with Galileo HAS or SSR corrections, as in the Single Point Positioning. The errors of the orbit, the clock and the tropospheric delay of a satellite are modeled as common to all its measurements, so they do not hide the precision of its carrier phases.

Some remarks on this model:

  • The satellites observed in one, two or three bands all take part in the solution, without the need of a common pair of bands.
  • With a single band, the measurements of a satellite cannot tell its ionospheric delay from its range, so such a satellite only takes part when four or more satellites are observed in two or more bands, which then give the position. Hence, a single-band receiver gets no Precise Point Positioning solution with this option, and it reports the single point one.
  • The carrier phases of the bands need not be coherent among them, since each band has its receiver clock.
  • Integer ambiguity resolution (PVT.AR_GPS=PPP-AR) is not available in this model.

Outlier rejection

In each of the executions of the Extended Kalman Filter defined in (\refeq:state−update\ref{eq:state-update})-(\refeq:meas−cov−update\ref{eq:meas-cov-update}), if the absolute value of a residual (\nu_s = \frac{P_r^{(s)} - \left( \hat{\rho}_r^{(s)} +c \hat{dt}_r - c \cdot dT^{(s)} + I_r^{(s)} + T_r^{(s)} \right)}{\sigma_s}) for a satellite ss is above a certain threshold, that observation is rejected as an outlier. The default threshold is set to 3030 m and can be configured via the option PVT.threshold_reject_innovation.

The rejection threshold can be set separately for code and carrier-phase observables: PVT.threshold_reject_innovation applies to code observables, and a new PVT.threshold_reject_innovation_phase option applies to carrier-phase observables. The latter defaults to the value of the former, so existing configurations behave identically; a value of 5.05.0 m for the phase threshold in RTK modes.

The receiver clocks are estimated anew at every epoch, starting from the single point solution. An offset common to the residuals of all the satellites of a receiver clock is then not a fault of their observations: it shows that the position of the filter and that solution differ, as it happens after a start with few satellites in poor geometry. The test leaves that offset out (the median of the residuals of the code observables of each receiver clock, and of the carrier-phase observables of each carrier-phase clock), so it does not reject the satellites that would correct the position. For the same reason, an observation that agrees with the single point solution of the epoch is kept, even if most satellites agree with a wrong position of the filter. This is only present in the next branch of the upstream repository. In GNSS-SDR v0.0.22, the test applies to the residuals as they are, and PPP_Static could stay tens of meters off for minutes after such a start.

The cycle-slip test on the geometry-free combination of carrier phases (PVT.slip_threshold) follows the same idea in these positioning modes: a slip is a change that departs from the median of the changes of the satellites of the same GNSS and bands, so a drift common to all of them is not taken as a slip.

Antenna models

The broadcast orbits, and the corrections to them, do not refer to the point that transmits each signal. The orbits of the navigation messages, and the Galileo HAS corrections, refer to the antenna phase center of the ionosphere-free combination of the signals that the broadcast clock is defined for (GPS L1 and L2; Galileo E1 and E5b for I/NAV, or E1 and E5a for F/NAV). The phase center of the signals that a receiver actually uses can be decimeters away from it along the antenna axis, and it varies with the direction of the line of sight. In the same way, the phase centers of the receiver antenna are some centimeters away from the point that its position is referred to, by an amount that depends on the band and on the elevation of the satellite.

In the Precise Point Positioning modes, these effects are corrected when the antenna calibrations are provided in the ANTEX format[^ANTEX], version 1.4 or 2.0. This is only present in the next branch of the upstream repository.

  • PVT.antex_file sets the ANTEX file with the calibrations of the satellite antennas. The measurements of the GPS and Galileo satellites are then referred to the phase center of each signal in use, including its variation with the nadir angle.
  • PVT.satellite_metadata_file sets the IGS satellite metadata file (SINEX format). ANTEX 2.0 identifies the satellites by their space vehicle number, and this file tells the PRN of each one over time, so the satellite antennas of an ANTEX 2.0 file need it.
  • PVT.antenna_type sets the name of the receiver antenna and its radome as they appear in the ANTEX file (for instance, NAX3G+C NONE), which selects its calibration: the phase center offset of each band and its variation with the elevation angle. If the radome is omitted, or the antenna has no calibration with it, the calibration with no radome (NONE) is used. A band with no calibration takes that of the GPS signal in the same band or, if there is none, that of GPS L2. The antenna is looked up in PVT.antex_file or, if it is set, in PVT.receiver_antex_file, since the IGS distributes the ANTEX 2.0 calibrations of satellites and receivers in separate files.
  • PVT.antenna_delta_east_m, PVT.antenna_delta_north_m and PVT.antenna_delta_up_m set the position of the antenna reference point with respect to the marker, in m. The receiver then reports the position of the marker.

The variations of the phase centers with the azimuth are not applied: the values used are those that the calibration gives for all azimuths (ANTEX 1.4) or their mean over the azimuth (ANTEX 2.0).

The files are published by the International GNSS Service (IGS) and, for the Galileo satellites, by the European GNSS Service Centre (GSC):

FileContentOption
igs20.atxSatellite and receiver antennas, ANTEX 1.4 (IGS).PVT.antex_file
igs20_sat.atx2Satellite antennas, ANTEX 2.0 (IGS).PVT.antex_file
igs_satellite_metadata.snxSatellite metadata, needed by igs20_sat.atx2 (IGS).PVT.satellite_metadata_file
igs20_rcv.atx2Receiver antennas, ANTEX 2.0 (IGS).PVT.receiver_antex_file
GSAT_2409.atxGalileo satellite antennas, ANTEX 1.4 (GSC).PVT.antex_file

The script download-antenna-files.sh, in the utils/scripts folder of the source tree, downloads the latest version of all of them and stores them uncompressed. The GSC also lists, in its Galileo satellite metadata page, the IGS file in use by the Galileo High Accuracy Service at each time; the script retrieves it if its calibrations differ from those of the latest igs20.atx.

Example for a static receiver with a calibrated antenna:

ini
PVT.positioning_mode=PPP_Static
PVT.antex_file=/path/to/igs20.atx
PVT.antenna_type=NAX3G+C NONE
PVT.antenna_delta_up_m=0.1

or, with the ANTEX 2.0 files:

ini
PVT.positioning_mode=PPP_Static
PVT.antex_file=/path/to/igs20_sat.atx2
PVT.satellite_metadata_file=/path/to/igs_satellite_metadata.snx
PVT.receiver_antex_file=/path/to/igs20_rcv.atx2
PVT.antenna_type=NAX3G+C NONE
PVT.antenna_delta_up_m=0.1

These options only apply in the Precise Point Positioning modes. In the Real-Time Kinematic ones, the offsets of the rover antenna alone would bias the baseline, so they are ignored.

Real-Time Kinematic

When the PVT.positioning_mode option is set to Static or Kinematic in the configuration file, the positioning problem is solved by relative positioning with respect to a base station of known coordinates, using double-differenced carrier-phase and pseudorange measurements. Static assumes a stationary rover antenna, while Kinematic models a moving receiver. In this operation mode, commonly known as Real-Time Kinematic (RTK), most of the common error sources (satellite orbit and clock errors, and, for short baselines, ionospheric and tropospheric delays) cancel out in the differencing, and centimeter-level accuracy becomes achievable once the carrier-phase integer ambiguities are resolved.

The current implementation supports a fixed (that is, static) base station broadcasting its position and its observations over the RTCM 3 protocol, received through the NTRIP client described below. Per constellation, and freely combined, the receiver may run GPS L1 C/A alone or together with one of L2C or L5, Galileo E1 alone or together with E5a, and BeiDou B1C (single-frequency). Single-band sets run single-frequency RTK, which is viable on the short effective baselines of VRS services and benefits from combining constellations. GPS L5 and Galileo E5a share the same center frequency, and BeiDou B1C shares the GPS L1 / Galileo E1 center, so the combined GPS L1+L5 / Galileo E1+E5a dual-frequency receiver needs only two RF channels, and a single-frequency GPS+Galileo+BeiDou receiver needs one. The base station can be a physical reference station or a Virtual Reference Station (VRS) synthesized by the caster: the client reports the rover position to the caster via NMEA GGA sentences (enabled by default, see PVT.ntrip_send_gga below), as VRS and nearest-station services require.

For a dual-frequency receiver, the vector of unknown states to be estimated is defined as:

x=(rrT,vrT,B1T,B2T)T ,\begin{equation} \mathbf{x} = \left(\mathbf{r}_{r}^{T}, \mathbf{v}_{r}^{T}, \mathbf{B}_{1}^{T}, \mathbf{B}_{2}^{T} \right)^T~, \end{equation}

where (\mathbf{B}{i} = \left( B{rb,i}^{(1)}, B_{rb,i}^{(2)}, ..., B_{rb,i}^{(m)} \right)^T) are the single-difference carrier-phase biases (in cycles) between the rover rr and the base station bb for the ii-th band. The measurement vector stacks double-differenced phase-range and pseudorange measurements:

y=(Φ1T,Φ2T,P1T,P2T)T ,\begin{equation} \mathbf{y} = \left(\boldsymbol{\Phi}_{1}^T, \boldsymbol{\Phi}_{2}^T, \mathbf{P}_{1}^T, \mathbf{P}_{2}^T \right)^T~, \end{equation}

where (\boldsymbol{\Phi}{i} = \left( \Phi{rb,i}^{(12)}, \Phi_{rb,i}^{(13)}, ..., \Phi_{rb,i}^{(1m)}\right)^T) and (\mathbf{P}{i} = \left( P{rb,i}^{(12)}, P_{rb,i}^{(13)}, ..., P_{rb,i}^{(1m)} \right)^T), with superscript (1s)(1s) denoting the difference between the reference satellite and satellite ss. The equations that relate measurements and states are:

hΦ,i=(ρrb(12)+λi(Brb,i(1)−Brb,i(2))ρrb(13)+λi(Brb,i(1)−Brb,i(3))⋮ρrb(1m)+λi(Brb,i(1)−Brb,i(m))),hP,i=(ρrb(12)ρrb(13)⋮ρrb(1m)) ,\begin{equation} \mathbf{h}_{\Phi,i} = \left( \begin{array}{c} \rho_{rb}^{(12)} +\lambda_i (B_{rb,i}^{(1)} -B_{rb,i}^{(2)} ) \\ \rho_{rb}^{(13)} +\lambda_i (B_{rb,i}^{(1)} -B_{rb,i}^{(3)} ) \\ \vdots \\ \rho_{rb}^{(1m)} +\lambda_i (B_{rb,i}^{(1)} -B_{rb,i}^{(m)} ) \end{array} \right), \quad \mathbf{h}_{P,i} = \left( \begin{array}{c} \rho_{rb}^{(12)} \\ \rho_{rb}^{(13)} \\ \vdots \\ \rho_{rb}^{(1m)} \end{array}\right)~, \end{equation}

with partial derivatives matrix:

H(x)=∂h(x)∂x∣x=x^=(−DE0λ1D0−DE00λ2D−DE000−DE000) ,\begin{equation} \mathbf{H}(\mathbf{x}) = \frac{\partial \mathbf{h}(\mathbf{x})}{\partial \mathbf{x}} \bigg\rvert_{\mathbf{x} = \hat{\mathbf{x}} } = \left( \begin{array}{cccc} -\mathbf{DE} & \mathbf{0} & \lambda_1 \mathbf{D} & \mathbf{0} \\ -\mathbf{DE} & \mathbf{0} & \mathbf{0} & \lambda_2 \mathbf{D} \\ -\mathbf{DE} & \mathbf{0} & \mathbf{0} & \mathbf{0} \\ -\mathbf{DE} & \mathbf{0} & \mathbf{0} & \mathbf{0} \end{array} \right)~, \end{equation}

where (\mathbf{D} = \left( \begin{array}{ccccc} 1 & -1 & 0 & \cdots & 0 \ 1 & 0 & -1 & \cdots & 0 \ \vdots & \vdots & \vdots & \ddots & \vdots \ 1 & 0 & 0 & \cdots & -1 \end{array} \right)) is the single-differencing matrix and (\mathbf{E} = \left( \mathbf{e}{r}^{(1)}, \mathbf{e}{r}^{(2)}, \mathbf{e}{r}^{(3)}, ..., \mathbf{e}{r}^{(m)} \right)^T) is the matrix of receiver-to-satellite line-of-sight vectors. The state vector is propagated and updated with the same Extended Kalman Filter described in the Precise Point Positioning section above. When PVT.dynamics_model=1, the estimated velocity propagates the predicted position between epochs; when PVT.dynamics_model=2, the estimated acceleration also contributes to the prediction. In both cases, the process noise (configurable via PVT.sigma_acch and PVT.sigma_accv) grows with the time elapsed between epochs.

The reference satellite for double differencing is selected as the one with the lowest measurement variance (instead of the highest elevation), excluding satellites flagged with cycle slips. This selection rule is expected to behave better in urban conditions, where the received signal quality is a better quality proxy than elevation. Measurement noise follows the elevation-dependent error model described in the Single Point Positioning section, optionally extended with the SNR-dependent term (which in relative positioning uses the carrier-to-noise density ratios reported by both the rover and the base station) and the receiver-reported standard deviation term.

If an epoch provides fewer than four valid double-differenced carrier phases, the code-differenced solution is kept and reported with DGNSS quality, instead of being discarded.

Cycle slips and carrier-phase integrity

Undetected carrier-phase discontinuities corrupt the estimated ambiguities, so several complementary detectors are applied:

  • Geometry-free combination: a cycle slip is declared when the geometry-free linear combination of carrier phases jumps between epochs by more than PVT.slip_threshold (it defaults to 0.050.05 m).
  • Phase-Doppler difference: a detector compares the time-differenced carrier phase with the integrated Doppler, after removing the receiver clock error common to all satellites, estimated as the median range-rate residual over all of them. It is enabled by setting PVT.slip_threshold_doppler to a positive value, in m/s; it defaults to 00 (disabled).
  • Carrier-phase integrity flags: the Tracking and Observables blocks flag carrier-phase discontinuities at their source: cycle slips after a signal reacquisition, and half-cycle jumps caused by a change in the telemetry-resolved phase polarity. The RTK engine resets or deweights the affected ambiguities instead of carrying them over, RINEX observation files report these events with standard loss-of-lock indicator (LLI) values, and the optional carrier-smoothing filter restarts instead of smoothing across the jump.

In the measurement update, innovations are screened against PVT.threshold_reject_innovation (code observables) and PVT.threshold_reject_innovation_phase (carrier-phase observables; setting it to 5.05.0 m in RTK modes is recommended). A carrier-phase bias that keeps producing outliers is reinitialized, instead of having its measurements rejected indefinitely.

Integer ambiguity resolution

Once the estimated states are obtained in the EKF measurement update, the float carrier-phase ambiguities can be resolved into integer values in order to improve accuracy and convergence time. The strategy is selected with the PVT.AR_GPS option: OFF, Continuous, Instantaneous, Fix-and-Hold, or PPP-AR.

At first, the estimated states and their covariance matrix are transformed to double-difference form by:

x^k∣k′=Gx^k∣k=(r^rT,v^rT,N^T)T\hat{\mathbf{x}}_{k|k}^\prime = \mathbf{G} \hat{\mathbf{x}}_{k|k} = \left( \hat{\mathbf{r}}_r^T, \hat{\mathbf{v}}_r^T, \hat{\mathbf{N}}^T \right)^T
Σk∣k′=GΣk∣kGT=(QRQNRQRNQN)\boldsymbol{\Sigma}_{k|k}^\prime = \mathbf{G} \boldsymbol{\Sigma}_{k|k} \mathbf{G}^T = \left( \begin{array}{cc} \mathbf{Q}_R & \mathbf{Q}_{NR} \\ \mathbf{Q}_{RN} & \mathbf{Q}_{N} \end{array} \right)

where (\mathbf{G} = \left( \begin{array}{ccc} \mathbf{I}_{6 \times 6} & {} & {} \ {} & \mathbf{D} & {} \ {} & {} & \mathbf{D} \end{array} \right)) is the single-difference to double-difference transformation matrix, built with an index-based formulation (in the style of RTKLIB 2.4.3) that keeps the bias bookkeeping consistent when several constellation groups are active. In this transformation, the single-difference carrier-phase biases are transferred to the double-difference form in order to eliminate receiver initial phase terms and obtain integer ambiguities N^\hat{\mathbf{N}} and their covariance QN\mathbf{Q}_N. QZSS ambiguities are resolved in their own group instead of jointly with GPS, avoiding integer fixes across the GPS-QZSS inter-system bias. The most appropriate integer vector N˘\breve{\mathbf{N}} is obtained by solving an ILS (integer least squares) problem expressed as:

N˘=arg⁡min⁡N∈Zm((N−N^)TQN−1(N−N^))\breve{\mathbf{N}} = \underset{\mathbf{N} \in \mathbb{Z}^m}{\arg\min} \left( \left( \mathbf{N} - \hat{\mathbf{N}} \right)^T \mathbf{Q}_{N}^{-1} \left( \mathbf{N} - \hat{\mathbf{N}} \right) \right)

To solve the ILS problem, the well-known efficient search strategy LAMBDA[^Teunissen95] and its extension MLAMBDA[^Chang05] are employed in the RTKLIB_PVT implementation. LAMBDA and MLAMBDA offer the combination of a linear transformation to shrink the integer vector search space and a skillful tree-search procedure in the transformed space.

The integer vector solution provided by these procedures is validated by the following simple Ratio-Test:

R=(N˘2−N^)TQN−1(N˘2−N^)(N˘−N^)QN−1(N˘−N^)>RthresR = \frac{\left(\breve{\mathbf{N}}_2 - \hat{\mathbf{N}} \right)^T \mathbf{Q}_N^{-1} \left( \breve{\mathbf{N}}_2 - \hat{\mathbf{N}} \right) }{ \left(\breve{\mathbf{N}} - \hat{\mathbf{N}} \right) \mathbf{Q}_N^{-1} \left( \breve{\mathbf{N}} - \hat{\mathbf{N}} \right)} > R_{thres}

In this Ratio-Test, the ratio-factor RR, defined as the ratio of the weighted sum of the squared residuals by the second best solution N˘2\breve{\mathbf{N}}_2 to the one by the best solution N˘\breve{\mathbf{N}}, is used to check the reliability of the solution. The validation threshold RthresR_{thres} can be set with the PVT.min_ratio_to_fix_ambiguity option, and it defaults to 3.03.0. Alternatively, the threshold can be made dependent on the number of ambiguity pairs by setting PVT.ar_ratio_min and PVT.ar_ratio_max to different values: the effective threshold then scales between those bounds with the number of available ambiguities (equal values keep the fixed PVT.min_ratio_to_fix_ambiguity threshold).

Integer ambiguity resolution is driven by a management layer that improves robustness in non-ideal conditions:

  • Ambiguity resolution is skipped while the float position variance is still above PVT.ar_max_position_variance (it defaults to 0.250.25 m^2; 00 disables this gate), avoiding false fixes while the filter converges.
  • If PVT.ar_filter=true (the default), newly-risen satellites are excluded from ambiguity resolution, and the fix is retried when their inclusion degrades the AR ratio.
  • When no fix is achieved with many satellites in view (at least PVT.min_drop_sats, defaulting to 1010; 00 disables this mechanism), a single satellite at a time is cycled out of the ambiguity resolution and the fix is retried.
  • Fixing and holding are gated on minimum satellite counts, configurable with PVT.min_fix_sats (it defaults to 44) and PVT.min_hold_sats (it defaults to 55).

After the validation, the ″FIXED″ solution of the rover antenna position and velocity r˘r\breve{\mathbf{r}}_r and v˘r\breve{\mathbf{v}}_r is obtained by solving the following equation:

(r˘rv˘r)=(r^rv^r)−QRNQN−1(N^−N˘)\left( \begin{array}{c} \breve{\mathbf{r}}_r \\ \breve{\mathbf{v}}_r \end{array} \right) = \left( \begin{array}{c} \hat{\mathbf{r}}_r \\ \hat{\mathbf{v}}_r \end{array} \right) - \mathbf{Q}_{RN} \mathbf{Q}_{N}^{-1} \left( \hat{\mathbf{N}} - \breve{\mathbf{N}} \right)

If the validation fails, the ″FLOAT″ solution r^r\hat{\mathbf{r}}_r and v^r\hat{\mathbf{v}}_r is output instead.

Fix and Hold option

If PVT.AR_GPS is set to Fix-and-Hold, once the integer ambiguities are validated they are tightly constrained to their resolved values through pseudo-measurements, whose variance can be configured with PVT.var_holdamb (it defaults to 0.10.1 cycles^2). Holding requires at least PVT.min_hold_sats satellites providing validated ambiguities.

Base station corrections through NTRIP

The PVT block embeds an NTRIP (Networked Transport of RTCM via Internet Protocol) client that connects to an NTRIP caster, decodes RTCM 3 messages carrying the base station position (message types 1005 / 1006) and its observations — GPS L1 with L2 or L5 (legacy message type 1004 and MSM message types 1074-1077), Galileo E1 with E5a (MSM message types 1094-1097), and BeiDou B1C (MSM message types 1124-1127, preferring B1C over B1I in the shared first slot) — and feeds time-aligned reference data to the RTKLIB relative-positioning solver.

The client is enabled by setting PVT.ntrip_client_enabled=true, which requires PVT.positioning_mode to be set to Static or Kinematic and, per constellation and freely combined, GPS L1 C/A alone or together with one of L2C or L5, Galileo E1 alone or together with E5a, and BeiDou B1C; single-band sets run single-frequency RTK. Its main features are:

  • NTRIP v2 with automatic v1 fallback: the client prefers NTRIP v2 and, after a fully-sent v2 exchange closes or times out before receiving response bytes, or returns HTTP 400, 501, or 505, it retries once on a fresh NTRIP v1 connection. Setting PVT.ntrip_version=1 forces the legacy protocol directly.
  • TLS support: setting PVT.ntrip_tls_enabled=true enables TLS 1.2 or newer, with certificate validation against the system CA store and host name verification.
  • Credential handling: HTTP Basic authentication is configured with PVT.ntrip_username and PVT.ntrip_password. Alternatively, the password can be read from an environment variable named in PVT.ntrip_password_env, keeping secrets out of the configuration file. Credentials are redacted from the RTKLIB trace files.
  • Robust operation: the client reconnects automatically without blocking the GNU Radio flow graph, filters base station changes (a positive PVT.ntrip_station_id restricts the stream to that exact station ID), and drops stale corrections older than PVT.ntrip_max_correction_age_s (it defaults to 55 s).
  • VRS support: the rover position is periodically reported upstream as an NMEA GGA sentence, as Virtual Reference Station and nearest-station mountpoints require (PVT.ntrip_send_gga, enabled by default; the cadence is set by PVT.ntrip_gga_period_ms, 1010 s by default). No sentence is sent before the receiver produces its first position fix; the single-point bootstrap solution is enough for the caster to start serving the virtual station. Set PVT.ntrip_send_gga=false if the rover position must not be disclosed to the caster; physical-base mountpoints work either way.
  • Explicit fallback: if corrections become unavailable and PVT.ntrip_fallback_to_single=true (the default), the receiver keeps operating with an explicitly labeled single-point solution.

With PVT.positioning_mode set to PPP_Static or PPP_Kinematic, the same client takes the stream as corrections to the broadcast orbits and clocks instead: see SSR corrections through NTRIP.

The console reports the RTKLIB solution status: the First position fix and periodic Position at lines are tagged with [RTK FIXED], [RTK FLOAT], [DGNSS], [SBAS] or [PPP] (color-coded), and status transitions are announced once when they happen, including the LAMBDA ambiguity-resolution ratio and its threshold when an RTK fix is acquired or lost. Plain single-point operation keeps the classic, unmodified console output.


SBAS augmentation

The RTKLIB_PVT implementation can apply legacy SBAS L1 corrections, such as those broadcast by EGNOS, to a GPS L1 single-point solution. The receiver needs at least one S1 channel using the SBAS_L1_Telemetry_Decoder. CRC-valid SBAS frames are forwarded automatically from that decoder to the PVT block; the SBAS satellite itself is not used as a ranging source.

The correction controls are independent:

  • PVT.satellite_ephemeris=SBAS applies fast and long-term satellite orbit/clock corrections. A GPS satellite without a current valid correction from the selected SBAS stream is excluded from the augmented solution.
  • PVT.iono_model=SBAS applies the ionospheric grid delays and their associated quality information broadcast in SBAS message types 18 and 26.
  • PVT.trop_model=SBAS applies the SBAS receiver-specification tropospheric model, commonly known as the MOPS model. It does not depend on a broadcast SBAS message.
  • PVT.sbas_satellite selects the SBAS GEO correction stream when more than one is received.

This implementation provides a non-safety-critical SBAS Open Service solution. It uses the broadcast UDRE and GIVE information to reject unusable corrections and model their variance, but it does not compute protection levels or provide a Safety-of-Life solution.


Galileo HAS corrections

The RTKLIB_PVT implementation applies the corrections of the Galileo High Accuracy Service (HAS), decoded from the Galileo E6-B signal by the Galileo_E6_Telemetry_Decoder, as defined in the Galileo HAS Signal-In-Space Interface Control Document[^HASICD]. They are applied when available, unless PVT.use_has_corrections=false is set in the configuration file. HAS corrects the orbits and clocks broadcast in the Galileo I/NAV and GPS LNAV navigation messages, and provides code and phase biases for each signal. It does not correct the ionospheric and tropospheric delays.

This section describes the implementation in the next branch of the upstream repository, which will be included in the next GNSS-SDR stable release.

Applied corrections

For each corrected satellite ss:

  • Orbit: the radial, along-track and cross-track corrections δrn\delta r_n, δrt\delta r_t and δrw\delta r_w are rotated to the ECEF frame with the satellite position r(s)\mathbf{r}^{(s)} and velocity r˙(s)\dot{\mathbf{r}}^{(s)} computed from the broadcast ephemeris, and added to the broadcast position:

    \begin{equation} \tilde{\mathbf{r}}^{(s)} = \mathbf{r}^{(s)} + \left( \mathbf{e}_n~~\mathbf{e}_t~~\mathbf{e}_w \right) \left( \begin{array}{c} \delta r_n \\ \delta r_t \\ \delta r_w \end{array} \right)~, \end{equation} \begin{equation} \quad \mathbf{e}_t = \frac{\dot{\mathbf{r}}^{(s)}}{\left\| \dot{\mathbf{r}}^{(s)} \right\|}~, \quad \mathbf{e}_w = \frac{\mathbf{r}^{(s)} \times \dot{\mathbf{r}}^{(s)}}{\left\| \mathbf{r}^{(s)} \times \dot{\mathbf{r}}^{(s)} \right\|}~, \quad \mathbf{e}_n = \mathbf{e}_t \times \mathbf{e}_w~. \end{equation}

  • Clock: the clock correction δC(s)\delta C^{(s)} (the Delta Clock Correction multiplied by its Delta Clock Multiplier) is added to the clock computed from the broadcast polynomial dTpoly(s)dT_{poly}^{(s)}, with the relativistic term computed from the broadcast position and velocity:

    dT~(s)=dTpoly(s)−2 r(s)⋅r˙(s)c2+δC(s)c .\begin{equation} \tilde{dT}^{(s)} = dT_{poly}^{(s)} - \frac{2 \, \mathbf{r}^{(s)} \cdot \dot{\mathbf{r}}^{(s)}}{c^2} + \frac{\delta C^{(s)}}{c}~. \end{equation}

  • Code biases: the code bias of each signal is added to its pseudorange. It replaces the broadcast group delays (TGDT_{GD}, the GPS inter-signal corrections, and the Galileo BGDBGD), which are not applied to a corrected satellite.

  • Phase biases: when they are broadcast, the phase bias of each signal is added to its carrier phase, used in the Precise Point Positioning and Real-Time Kinematic modes.

In the Precise Point Positioning modes, a corrected satellite is weighted with the accuracy of its corrected orbit and clock (0.10.1 m in each axis and 0.20.2 m, respectively, as in the Galileo HAS Reference User Algorithm[^HASRUA]) instead of the accuracy index of its navigation message, which describes the broadcast ones. In this way, the carrier-phase measurements drive the solution.

Corrected satellites

A satellite gets HAS corrections when all of the following conditions are met:

  • An orbit correction and a clock correction with the same Mask ID and IOD Set ID are within their validity intervals. The validity interval of each block starts at the reference time of its message, obtained from its time of hour (HAS SIS ICD Section 7.7), not at the time the message was received.
  • The receiver has decoded the broadcast ephemeris the corrections refer to (its issue of data, IODref): the current one or, until HAS follows an update of the broadcast ephemeris, the one it replaced, within its fit interval. Corrections received before that ephemeris are stored, and they are applied as soon as it is decoded.
  • Every signal of the satellite used in the solution has a code bias of the same Mask ID and IOD Set ID. For a signal with data and pilot components, the bias of the tracked component is preferred, then the bias of the other component of the same signal, then the bias of their combination. The bias of a different signal (for instance, GPS L2 P for L2C) is never used.

For GPS, the corrections apply to the LNAV ephemeris, so the satellite needs its L1 C/A observation; its L2C and L5 observations join it with their own code biases. For Galileo, only the I/NAV ephemeris is corrected: a corrected satellite uses its I/NAV ephemeris for all its signals, including E5a. Any other satellite keeps its broadcast orbit, clock and group delays, and its observations get no HAS biases.

In addition:

  • The orbit corrections and biases of a new IOD Set ID arrive before its clock corrections. Meanwhile, the corrections of the previous set keep being applied within their validity intervals.
  • A satellite that a clock correction block flags as “do not use” is excluded from the solution, whatever its ephemeris, from the reference time of that message until its validity interval ends or a later clock correction for the satellite is received.
  • Only messages in operational mode are used. A message with the HAS status “Don’t use” discards all the stored corrections.
  • Turning the HAS corrections of a carrier on or off, changing the signal whose phase bias is applied, or a change of the Phase Discontinuity Indicator are reported as a cycle slip of that carrier, so that the Precise Point Positioning and Real-Time Kinematic filters reset its ambiguity.

Atmospheric models and receiver clocks

The ionospheric and tropospheric models selected with PVT.iono_model and PVT.trop_model apply as configured. With PVT.iono_model=OFF and PVT.trop_model=OFF (their default values), single-frequency solutions keep the full ionospheric and tropospheric delays, of several meters, and most of the benefit of HAS is lost. A single-frequency receiver should set:

ini
PVT.iono_model=Broadcast
PVT.trop_model=Saastamoinen

and a dual-frequency receiver (for instance, Galileo E1 + E6 or GPS L1 + L5):

ini
PVT.iono_model=Iono-Free-LC
PVT.trop_model=Saastamoinen

In the Precise Point Positioning modes, a receiver with two or more bands can also set PVT.iono_model=Estimate_STEC. This uncombined model gives less noisy solutions than the ionosphere-free combination, and it also uses the satellites observed in a single band.

The corrected orbits refer to the antenna phase center that the navigation message refers to, which is not the one of the signals of every receiver: see Antenna models.

HAS refers the clocks of the Galileo satellites to the Galileo System Time, while its GPS clock corrections can include a common offset (HAS SIS ICD Section 7.3). The single point solution estimates a Galileo-GPS time offset besides the receiver clock, and the Precise Point Positioning filter estimates a receiver clock for each system, so the offset does not bias the solution. A solution that combines GPS satellites with and without HAS corrections still shares one GPS receiver clock between them.

Reporting

  • The galhas_status field of the monitoring stream is 1 when at least one satellite in the solution has HAS orbit and clock corrections, and the has_corrected field of each TrackedSatellite entry tells which satellites and signals got them.
  • In the PPP_Static and PPP_Kinematic positioning modes, the solution is reported as a PPP solution (in the console, the monitoring stream, the NMEA sentences and the dump file) only when every satellite in it has HAS orbit and clock corrections. Otherwise, it rests on broadcast orbits and clocks, and it is reported as a single point solution.
  • Each record of the PVT dump file (PVT.dump=true) ends with the number of satellites in the solution with HAS orbit and clock corrections (uint8_t), stored as has_corrected_sats in the “.mat” file.
  • The HAS corrections can be sent in RTCM SSR and IGS SSR messages, see RTCM-104.
  • The decoded HAS messages are stored in a text file and, optionally, in CSV files, see Galileo HAS messages.

SSR corrections through NTRIP

This section describes a feature of the next branch of the upstream repository, which will be included in the next GNSS-SDR stable release.

In the Precise Point Positioning modes, the NTRIP client described in Base station corrections through NTRIP takes the stream of the caster as State Space Representation (SSR) corrections to the broadcast orbits and clocks, instead of the data of a base station. It is enabled by setting PVT.ntrip_client_enabled=true together with PVT.positioning_mode=PPP_Static or PPP_Kinematic. The connection options (caster, mountpoint, credentials, TLS, reporting of the receiver position) are the same ones, and the channel sets are those of the Precise Point Positioning modes.

The stream must carry orbit, clock and code bias corrections for GPS (referred to the LNAV message) or Galileo (referred to the I/NAV message), in either of these formats:

  • RTCM SSR: message types 1057 to 1062 for GPS, and 1240 to 1245 for Galileo.
  • IGS SSR[^IGSSSR], version 1.00: message type 4076, sub-types 21 to 25 for GPS and 61 to 65 for Galileo.

The corrections are applied in the same way as the Galileo HAS ones, which they replace when this client is enabled:

  • A satellite is corrected when the issue of data of its broadcast ephemeris is the one that the corrections refer to, and every one of its signals in the solution has a code bias. Any other satellite keeps its broadcast orbit, clock and group delays.
  • The orbit and clock corrections of a satellite are used as a pair. When an orbit correction for another issue of ephemeris arrives, the previous pair keeps being applied until the clock correction that matches it is received.
  • Corrections older than PVT.ntrip_max_correction_age_s are discarded. In this role, it defaults to 9090 s.
  • The corrected satellites are weighted, and the solutions are reported as PPP, as described for the Galileo HAS corrections.

The corrected orbits of an SSR stream refer to a point of the satellite that depends on the service, and the antenna models need to know it. It is set by PVT.ssr_reference_point:

  • Primary_Frequency (the default): the antenna phase center of L1 or E1, as defined in IGS SSR.
  • Navigation_Message: the antenna phase center that the navigation message refers to, as in Galileo HAS and in the SSR messages that GNSS-SDR generates from it (see RTCM-104).
  • Center_Of_Mass: the center of mass of the satellite, which requires the ANTEX file set by PVT.antex_file.

Example:

ini
;######### PVT CONFIG WITH SSR CORRECTIONS VIA NTRIP ############
PVT.implementation=RTKLIB_PVT
PVT.positioning_mode=PPP_Kinematic
PVT.iono_model=Estimate_STEC
PVT.trop_model=Saastamoinen
PVT.ntrip_client_enabled=true
PVT.ntrip_caster_address=caster.example.org
PVT.ntrip_caster_port=2101
PVT.ntrip_mountpoint=SSR_MOUNTPOINT
PVT.ntrip_username=user
PVT.ntrip_password_env=NTRIP_PASSWORD
PVT.ssr_reference_point=Primary_Frequency
PVT.antex_file=/path/to/igs20.atx

Ionospheric Model

The ionosphere is a region of Earth’s upper atmosphere, from about 60 km to 1,000 km altitude, surrounding the planet with a shell of electrons and electrically charged atoms and molecules. This part of the atmosphere is ionized by ultraviolet, X-ray and shorter wavelengths of solar radiation, and this affects GNSS signals’ propagation speed.

The propagation speed of the GNSS electromagnetic signals through the ionosphere depends on its electron density, which is typically driven by two main processes: during the day, sun radiation causes ionization of neutral atoms producing free electrons and ions. During the night, the recombination process prevails, where free electrons are recombined with ions to produce neutral particles, which leads to a reduction in the electron density.

The frequency dependence of the ionospheric effect (in m) is described by the following expression:

Ir,i(s)=40.3⋅STECfi2 ,\begin{equation} I_{r,i}^{(s)} = \frac{40.3 \cdot \text{STEC} }{f_i^2}~, \end{equation}

where STEC is the Slant Total Electron Content, which describes the number of free electrons present within one square meter between the receiver and satellite ss. It is often reported in multiples of the so-called TEC unit, defined as TECU=1016\text{TECU} = 10^{16} el/m2^2. Ionospheric effects on the phase and code measurements have the opposite signs and have approximately the same amount. It causes a positive delay on code measurements (so it is included with a positive sign in the pseudorange measurement model) and a negative delay, or phase advance, in phase measurements (so it is included with a negative sign in the phase-range measurement model).

This dispersive nature (i.e., the ionospheric delay is proportional to the squared inverse of fif_i) allows users to remove its effect up to more than 99.9% using two frequency measurements (as in the see ionosphere-free combination for dual-frequency receivers shown in the Precise Point Positioning algorithm described above), but single-frequency receivers have to apply an ionospheric prediction model to remove (as much as possible) this effect, that can reach up to several tens of meters.

Band selection

The PVT.iono_model option decides the pseudorange model applied to every satellite of a given system, regardless of how many bands each individual satellite is being tracked on:

  • Iono-Free-LC forms the ionosphere-free linear combination of the first and second bands (GPS and QZSS L1+L2, or L1+L5 when L2 is not available; Galileo E1+E5a, E1+E5b or E1+E6; BeiDou B1I+B2a or B1C+B2a, or B1I+B3I when B2a is not available; GLONASS L1+L2). A satellite whose second band is not available at a given epoch is excluded from the solution at that epoch, so that all satellites of the system share the same clock reference.
  • OFF, Broadcast and SBAS use the first band alone, corrected with the broadcast group delay that matches the clock model of the ephemeris in use: TGDT_{GD} for GPS and QZSS (plus the inter-signal correction ISCL2CISC_{L2C} or ISCL5I5ISC_{L5I5} for L2C-only or L5-only measurements); BGDE1,E5aBGD_{E1,E5a} or BGDE1,E5bBGD_{E1,E5b} for Galileo, depending on whether the F/NAV or the I/NAV clock is used; and, for BeiDou, TGD1T_{GD1} for B1I, TGDB1CpT_{GD_{B1Cp}} for B1C (plus ISCB1CdISC_{B1Cd} when the data component is tracked), and TGDB2ap+ISCB2adT_{GD_{B2ap}} + ISC_{B2ad} for B2a, while B3I needs no correction since it is the reference of the broadcast clock. The ionospheric delay is modeled or set to zero as selected. A second band present in the same observation record is ignored by the single point solution. When the first band is missing (for instance, a GPS L5-only or a Galileo E5a-only channel), the second band is used alone and the modeled ionospheric delay is scaled by (f1/f2)2\left(f_{1}/f_{2}\right)^2.
  • Estimate_STEC, in the Precise Point Positioning modes, uses every band of each satellite on its own, each one with its group delay, and estimates the slant ionospheric delay of the satellite (see Uncombined model). This is only present in the next branch of the upstream repository.

Broadcast

For ionosphere correction for single-frequency GNSS users, GPS navigation data include the following broadcast ionospheric parameters:

pion=(α0,α1,α2,α3,β0,β1,β2,β3)T .\mathbf{p}_{ion} = \left(\alpha_0, \alpha_1, \alpha_2, \alpha_3, \beta_0, \beta_1, \beta_2, \beta_3 \right)^T~.

By using these ionospheric parameters, the L1 ionospheric delay Ir,1(s)I_{r,1}^{(s)} (in m) can be derived by the following procedure[^ISGPS200] (this model is often called as the Klobuchar model[^Klobuchar87]):

Ψ=0.0137Elr(s)+0.11−0.022\begin{equation} \Psi = \frac{0.0137}{El_r^{(s)} + 0.11} - 0.022 \end{equation}
ψi=ψ+Ψcos⁡(Azr(s))\begin{equation} \psi_i = \psi + \Psi \cos\left(Az_r^{(s)}\right) \end{equation}
λi=λ+Ψsin⁡(Azr(s))cos⁡(ψi)\begin{equation} \lambda_i = \lambda + \frac{\Psi \sin\left(Az_r^{(s)}\right)}{\cos(\psi_i)} \end{equation}
ψm=ψi+0.064cos⁡(λi−1.617)\begin{equation} \psi_m = \psi_i + 0.064 \cos(\lambda_i - 1.617) \end{equation}
t=4.32⋅104λi+t\begin{equation} t = 4.32 \cdot 10^4 \lambda_i + t \end{equation}
F=1.0+16.0⋅(0.43−Elr(s))3\begin{equation} F = 1.0 + 16.0 \cdot \left(0.43 - El_r^{(s)}\right)^3 \end{equation}
x=2π(t−505400)∑n=03βnψmn\begin{equation} x = \frac{2 \pi (t - 505400)}{\sum_{n=0}^{3} \beta_n {\psi_m}^n} \end{equation}
 ⁣ ⁣ ⁣ ⁣ ⁣ ⁣ ⁣ ⁣Ir,1(s)={F⋅5⋅10−9(∣x∣>1.57)F⋅(5⋅10−9+∑n=14αnψmn⋅(1−x22+x424))(∣x∣≤1.57)\begin{equation} \!\!\!\!\!\!\!\!I_{r,1}^{(s)} = \left\{ \begin{array}{cc} F \cdot 5 \cdot 10 ^{-9} & \left(|x| > 1.57\right) \\ F \cdot \left( 5 \cdot 10^{-9} + \sum_{n=1}^{4} \alpha_n {\psi_m}^{n} \cdot \left(1 -\frac{x^2}{2}+\frac{x^4}{24} \right) \right) & ( | x | \leq 1.57)\end{array} \right. \end{equation}

This correction is activated when PVT.iono_model is set to Broadcast.

For BeiDou satellites, the ionospheric models broadcast by BeiDou are used instead, when available: B1C measurements are corrected with the BeiDou Global Ionospheric delay correction Model (BDGIM) parameters broadcast in the B-CNAV1 message, and the other BeiDou measurements (and B1C ones, if no BDGIM parameters have been received) with the Klobuchar-like model whose coefficients are broadcast in the BeiDou D1/D2 navigation messages, referenced to the B1I frequency. If no BeiDou ionospheric parameters are available, the GPS model described above is applied. For the other systems, the GPS model is always used.

SBAS

If PVT.iono_model is set to SBAS, the ionospheric delay is obtained from the SBAS ionospheric grid. Message type 18 defines the ionospheric grid point masks, and message type 26 provides the vertical delays and GIVE quality indicators. The correction is applied only where the received grid provides valid coverage.

Estimate the slant ionospheric delays

If PVT.iono_model is set to Estimate_STEC, the ionospheric delays are estimated as states of the filter instead of being modeled: the slant delay of each satellite in the uncombined model of the Precise Point Positioning modes, and the differences of the delays between the receiver and the base station in the Real-Time Kinematic modes. In the Single Point Positioning mode, this option applies no ionospheric correction.


Tropospheric Model

The troposphere is the lowest portion of Earth’s atmosphere, and contains 99% of the total mass of water vapor. The average depths of the troposphere are 20 km in the tropics, 17 km in the mid-latitudes, and 7 km in the polar regions in winter. The chemical composition of the troposphere is essentially uniform, with the notable exception of water vapor, which can vary widely. The effect of the troposphere on the GNSS signals appears as an extra delay in the measurement of the signal traveling time from the satellite to the receiver. This delay depends on the temperature, pressure, humidity as well as the transmitter and receiver antennas location, and it is related to air refractivity, which in turn can be divided into hydrostatic, i.e., dry gases (mainly N2N_2 and O2O_2), and wet, i.e., water vapor, components:

  • Hydrostatic component delay: Its effect varies with local temperature and atmospheric pressure in quite a predictable manner, besides its variation is less than the 1% in a few hours. The error caused by this component is about 2.32.3 meters in the zenith direction and 1010 meters for lower elevations (10o10^{o} approximately).
  • Wet component delay: It is caused by the water vapor and condensed water in form of clouds and, thence, it depends on weather conditions. The excess delay is small in this case, only some tens of centimetres, but this component varies faster than the hydrostatic component and in a quite random way, being very difficult to model.

The troposphere is a non-dispersive media with respect to electromagnetic waves up to 15 GHz, so the tropospheric effects are not frequency-dependent for the GNSS signals. Thence, the carrier phase and code measurements are affected by the same delay, and this effect can not be removed by combinations of dual-frequency measurements.

Saastamoinen

The standard atmosphere can be expressed as:[^Bevis94]

p=1013.15⋅(1−2.2557⋅10−5⋅h)5.2568 ,\begin{equation} p = 1013.15 \cdot (1 - 2.2557 \cdot 10^{-5} \cdot h)^{5.2568}~, \end{equation}
T=15.0−6.5⋅10−3⋅h+273.15 ,\begin{equation} T = 15.0 - 6.5 \cdot 10^{-3} \cdot h + 273.15~, \end{equation}
e=6.108⋅exp⁡{17.15T−4684.0T−38.45}⋅hrel100 ,\begin{equation} e = 6.108 \cdot \exp\left\{\frac{17.15 T - 4684.0}{T - 38.45}\right\} \cdot \frac{h_{rel}}{100}~, \end{equation}

where pp is the total pressure (in hPa), TT is the absolute temperature (in K) of the air, hh is the geodetic height above MSL (mean sea level), ee is the partial pressure (in hPa) of water vapor and hrelh_{rel} is the relative humidity. The tropospheric delay Tr(s)T_{r}^{(s)} (in m) is expressed by the Saastamoinen model with pp, TT and ee derived from the standard atmosphere:

Tr(s)=0.002277cos⁡(z(s)){p+(1255T+0.05)e−tan⁡(z(s))2} ,\begin{equation} T_{r}^{(s)} = \frac{0.002277}{\cos(z^{(s)})} \left\{ p+\left( \frac{1255}{T} + 0.05 \right) e - \tan(z^{(s)})^2 \right\}~, \end{equation}

where z(s)z^{(s)} is the zenith angle (rad) as (z^{(s)} = \frac{\pi}{2} - El_{r}^{(s)}), where Elr(s)El_{r}^{(s)} is elevation angle of satellite direction (rad).

The standard atmosphere and the Saastamoinen model are applied in the case that the processing option PVT.trop_model is set to Saastamoinen, where the geodetic height is approximated by the ellipsoidal height and the relative humidity is fixed to 70%.

SBAS

If PVT.trop_model is set to SBAS, the tropospheric model defined in the SBAS receiver specifications is applied. This is commonly known as the MOPS model. Refer to Appendix A.4.2.4 of the MOPS reference[^MOPS] for details.

Estimate the tropospheric zenith total delay

If the processing option PVT.trop_model is set to Estimate_ZTD, a more precise troposphere model is applied with strict mapping functions as:

m(Elr(s))=mW(Elr(s)){1+cot⁡(Elr(s))} ,\begin{equation} m\left(El_{r}^{(s)}\right) = m_{W}\left(El_{r}^{(s)}\right)\left\{1+\cot\left(El_{r}^{(s)}\right) \right\}~, \end{equation}
Trs=mH(Elr(s))ZH,r+m(Elr(s))(ZT,r−ZH,r) ,\begin{equation} T_{r}^{s} = m_{H}\left(El_{r}^{(s)}\right)Z_{H,r} + m\left(El_{r}^{(s)}\right) \left(Z_{T,r}-Z_{H,r}\right)~, \end{equation}

where ZT,tZ_{T,t} is the tropospheric zenith total delay (in meters), ZH,rZ_{H,r} is the tropospheric zenith hydro‐static delay (in meters), mH(Elr(s))m_{H}\left(El_{r}^{(s)}\right) is the hydro‐static mapping function and mW(Elr(s))m_{W}\left(El_{r}^{(s)}\right) is the wet mapping function. The tropospheric zenith hydro‐static delay is given by Saastamoinen model described above with the zenith angle z=0z = 0 and relative humidity hrel=0h_{rel} = 0. For the mapping function, the software employs the Niell mapping function[^Niell96]. The zenith total delay ZT,rZ_{T,r} is estimated as an unknown parameter in the parameter estimation process.

Estimate the tropospheric zenith total delay and gradient

If the processing option trop_model is set to Estimate_ZTD_Grad, a more precise troposphere model is applied with strict mapping functions as[^MacMillan95]:

 ⁣ ⁣ ⁣ ⁣ ⁣ ⁣ ⁣ ⁣ ⁣ ⁣ ⁣ ⁣ ⁣ ⁣m(Elr(s)) ⁣= ⁣mW(Elr(s)) ⁣[1 ⁣+ ⁣cot⁡ ⁣(Elr(s)) ⁣( ⁣GN,rcos⁡ ⁣(Azr(s)) ⁣+ ⁣GE,rsin⁡ ⁣(Azr(s)) ⁣) ⁣]\begin{equation} \!\!\!\!\!\!\!\!\!\!\!\!\!\!m\left(El_{r}^{(s)}\right)\! = \!m_{W}\left(El_{r}^{(s)}\right)\!\left[1\!+\!\cot \! \left(El_{r}^{(s)}\right) \! \left( \! G_{N,r} \cos \! \left(Az_{r}^{(s)}\right) \!+\! G_{E,r} \sin \! \left(Az_{r}^{(s)}\right)\!\right) \!\right] \end{equation}

where Azr(s)Az_{r}^{(s)} is the azimuth angle of satellite direction (rad), and GE,rG_{E,r} and GN,rG_{N,r} are the east and north components of the tropospheric gradient, respectively. The zenith total delay ZT,rZ_{T,r} and the gradient parameters GE,rG_{E,r} and GN,rG_{N,r} are estimated as unknown parameters in the parameter estimation process.

A de-noising Kalman filter for the PVT solution

The PVT block can apply a simple Kalman filter to the computed PVT solutions. This filter can be enabled by setting PVT.enable_pvt_kf=true in the configuration file. The structure of this filter is as follows:

  • State model: (\begin{equation} \mathbf{x} = \left[ x, y, z, v_x, v_y, v_z \right]^{T} \end{equation})

    xk=Fxk−1+vk ,vk∼N(0,Q)\begin{equation} \mathbf{x}_k = \mathbf{F} \mathbf{x}_{k-1} + \mathbf{v}_k~, \quad \mathbf{v}_k \sim \mathcal{N}(\mathbf{0},\mathbf{Q}) \end{equation}
    F=[100T000100T000100T000100000010000001]\begin{equation} \textbf{F} = \left[ \begin{array}{cccccc} 1 & 0 & 0 & T & 0 & 0 \\ 0 & 1 & 0 & 0 & T & 0 \\ 0 & 0 & 1 & 0 & 0 & T \\ 0 & 0 & 0 & 1 & 0 & 0 \\ 0 & 0 & 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 0 & 0 & 1 \end{array} \right] \end{equation}
    Q=[σs_pos2000000σs_pos2000000σs_pos2000000σs_vel2000000σs_vel2000000σs_vel2]\begin{equation} \textbf{Q} = \begin{bmatrix} \sigma_{s\_pos}^{2} & 0 & 0 & 0 & 0 & 0 \\ 0 & \sigma_{s\_pos}^{2} & 0 & 0 & 0 & 0 \\ 0 & 0 & \sigma_{s\_pos}^{2} & 0 & 0 & 0 \\ 0 & 0 & 0 & \sigma_{s\_vel}^{2} & 0 & 0 \\ 0 & 0 & 0 & 0 & \sigma_{s\_vel}^{2} & 0 \\ 0 & 0 & 0 & 0 & 0 & \sigma_{s\_vel}^{2} \end{bmatrix} \end{equation}

  • Measurement model: (\begin{equation} \mathbf{z} = \left[ x , y , z , v_{x}, v_{y}, v_{z} \right]^{T} \end{equation})

    zk=Hxk+wk,wk∼N(0,R)\begin{equation} \mathbf{z}_k = \mathbf{H}\mathbf{x}_k + \mathbf{w}_k , \quad \mathbf{w}_k \sim \mathcal{N}(\mathbf{0},\mathbf{R}) \end{equation}
    H=[100000010000001000000100000010000001]\begin{equation} \textbf{H} = \begin{bmatrix} 1 & 0 & 0 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 & 0 & 0 \\ 0 & 0 & 1 & 0 & 0 & 0 \\ 0 & 0 & 0 & 1 & 0 & 0 \\ 0 & 0 & 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 0 & 0 & 1 \end{bmatrix} \end{equation}
    R=[σm_pos2000000σm_pos2000000σm_pos2000000σm_vel2000000σm_vel2000000σm_vel2]\begin{equation} \textbf{R} = \begin{bmatrix} \sigma_{m\_pos}^{2} & 0 & 0 & 0 & 0 & 0 \\ 0 & \sigma_{m\_pos}^{2} & 0 & 0 & 0 & 0 \\ 0 & 0 & \sigma_{m\_pos}^{2} & 0 & 0 & 0 \\ 0 & 0 & 0 & \sigma_{m\_vel}^{2} & 0 & 0 \\ 0 & 0 & 0 & 0 & \sigma_{m\_vel}^{2} & 0 \\ 0 & 0 & 0 & 0 & 0 & \sigma_{m\_vel}^{2} \end{bmatrix} \end{equation}

  • Initialization: (\begin{equation} \mathbf{x}{0|0} = \left[ \begin{array}{cccc} x{0} & y_{0} & z_{0} & v_{x_{0}} & v_{y_{0}} & v_{z_{0}} \end{array} \right]^T \end{equation})

    P0∣0=[σs_pos2000000σs_pos2000000σs_pos2000000σs_vel2000000σs_vel2000000σs_vel2]\begin{equation} \mathbf{P}_{0|0} = \begin{bmatrix} \sigma_{s\_pos}^{2} & 0 & 0 & 0 & 0 & 0 \\ 0 & \sigma_{s\_pos}^{2} & 0 & 0 & 0 & 0 \\ 0 & 0 & \sigma_{s\_pos}^{2} & 0 & 0 & 0 \\ 0 & 0 & 0 & \sigma_{s\_vel}^{2} & 0 & 0 \\ 0 & 0 & 0 & 0 & \sigma_{s\_vel}^{2} & 0 \\ 0 & 0 & 0 & 0 & 0 & \sigma_{s\_vel}^{2} \end{bmatrix} \end{equation}

  • Prediction: (\begin{equation} \hat{\mathbf{x}}{k|k-1} = \mathbf{F} \hat{\mathbf{x}}{k-1|k-1} \end{equation})

    Pk∣k−1=FPk−1∣k−1FT+Q\begin{equation} \mathbf{P}_{k|k-1} = \mathbf{F} \mathbf{P}_{k-1|k-1} \mathbf{F}^T + \mathbf{Q} \end{equation}

  • Update: (\begin{equation} \mathbf{K}k = \mathbf{P}{k|k-1} \mathbf{H}^T \left( \mathbf{H}\mathbf{P}_{k|k-1} \mathbf{H}^T + \mathbf{R} \right)^{-1} \end{equation})

    x^k∣k=x^k∣k−1+Kk(zk−Hkx^k∣k−1)\begin{equation} \hat{\mathbf{x}}_{k|k} = \hat{\mathbf{x}}_{k|k-1} + \mathbf{K}_k \left( \mathbf{z}_k - \mathbf{H}_k\hat{\mathbf{x}}_{k|k-1} \right) \end{equation}
    Pk∣k=(I−KkH)Pk∣k−1\begin{equation} \mathbf{P}_{k|k} = \left( \mathbf{I} - \mathbf{K}_{k} \mathbf{H} \right)\mathbf{P}_{k|k-1} \end{equation}

The following parameters are exposed in the configuration, here with their default values:

  • \sigma_{m\_pos} = \text{PVT.kf_measures_ecef_pos_sd_m} = 1.0 \text {, in [m].}
  • \sigma_{m\_vel} = \text{PVT.kf_measures_ecef_vel_sd_ms} = 0.1 \text {, in [m/s].}
  • \sigma_{s\_pos} = \text{PVT.kf_system_ecef_pos_sd_m} = 2.0 \text {, in [m].}
  • \sigma_{s\_vel} = \text{PVT.kf_system_ecef_vel_sd_ms} = 0.5 \text {, in [m/s].}

Output formats

Depending on the specific application or service that is exploiting the information provided by GNSS-SDR, different internal data will be required. The software provides such output data in standard formats:

KML, GeoJSON, GPX

For Geographic Information Systems, map representation and Earth browsers: KML, GeoJSON, and GPX files are generated by default, upon the computation of the first position fix.

RINEX

For post-processing applications: RINEX 2.11, 3.02, or 4.02. Version 3.02 is generated by default, and versions 2.11 or 4.02 can be requested by setting PVT.rinex_version=2 or PVT.rinex_version=4 in the configuration file. If GPS L2C and/or L5 channels are configured without GPS L1 C/A channels, or QZSS L5 channels without QZSS L1 C/A channels, the receiver switches to RINEX 4.02 (with a warning message), since RINEX 2.11 and 3.02 navigation files cannot represent the GPS/QZSS CNAV navigation data. The same happens when BeiDou B1C or B2a channels are configured, since RINEX 2.11 and 3.02 define neither their observation codes nor their navigation records (CNV1 for B-CNAV1 and CNV2 for B-CNAV2, including ISCB2adISC_{B2ad}).

The switch to RINEX 4.02 for BeiDou B1C and B2a, the observation codes that follow the tracked signal component, and the SYS / PHASE SHIFT records are only present in the next branch of the upstream repository, and will be included in the next GNSS-SDR stable release. GNSS-SDR v0.0.22 writes a fixed observation code per signal.

The observation code of each measurement names the signal component that was actually tracked. For the signals with a pilot component, that is selected with the track_pilot parameter of their Tracking block:

SignalData componentPilot component
GPS L1 C/A1C
GPS L1C1S1L
GPS L2C2S
GPS L55I5Q
Galileo E11B1C
Galileo E5a5I5Q
Galileo E5b7I7Q
Galileo E66B6C
GLONASS L1 C/A1C
GLONASS L2 C/A2C
BeiDou B1I2I (1I in RINEX 3.02)
BeiDou B3I6I
BeiDou B1C1D1P
BeiDou B2a5D5P
QZSS L1 C/A1C
QZSS L1 C/B1E (RINEX 4.02 only)
QZSS L55I5Q

The header of the observation file declares, for each signal, the observation types of the component that its channels are set to track. Both components are declared when channels of the same signal are configured differently. QZSS L1 C/B, which some satellites broadcast instead of L1 C/A, has no observation code in RINEX 3.02 and is written in the 1C columns of those files.

Carrier phases are aligned by the receiver to the reference signal of their band: those measured on a pilot component to its data component, GPS L1C to L1 C/A, and GPS L2C to L2 P(Y). RINEX 3.02 files state this in their SYS / PHASE SHIFT header records, with a blank correction for the reference signals and a zero correction for the others. RINEX 4.02 deprecates those records, and they are not written.

IMPORTANT: In order to get well-formatted GeoJSON, KML, GPX, and RINEX files, always terminate gnss-sdr execution by pressing key ‘q’ and then key ‘ENTER’. Those files will be automatically deleted if no position fix has been obtained during the execution of the software receiver.

NMEA-0183

For sensor integration: NMEA-0183. A text file containing NMEA messages is stored with a default name of ./nmea_pvt.nmea, configurable via PVT.nmea_dump_filename. In addition, NMEA messages can be forwarded to a serial port by setting PVT.flag_nmea_tty_port=true. The default port is /dev/tty1, and can be configured via PVT.nmea_dump_devname.

RTCM-104

For real-time, possibly networked processing: RTCM-104 messages, v3.2. A TCP/IP server of RTCM messages can be enabled by setting PVT.flag_rtcm_server=true in the configuration file, and will be active during the execution of the software receiver. By default, the server will operate on port 2101 (which is the recommended port for RTCM services according to the Internet Assigned Numbers Authority, IANA), and will identify the Reference Station with ID=1234. These values can be changed with PVT.rtcm_tcp_port and PVT.rtcm_station_id. The rate of the generated RTCM messages can be tuned with the options PVT.rtcm_MT1019_rate_ms (GPS ephemeris, it defaults to 5000 ms), PVT.rtcm_MT1020_rate_ms (GLONASS ephemeris, it defaults to 5000 ms), PVT.rtcm_MT1045_rate_ms (Galileo F/NAV ephemeris, it defaults to 5000 ms), PVT.rtcm_MT1046_rate_ms (Galileo I/NAV ephemeris, it defaults to the value of PVT.rtcm_MT1045_rate_ms), and PVT.rtcm_MSM_rate_ms (observations, it defaults to 1000 ms). The RTCM messages can also be forwarded to the serial port PVT.rtcm_dump_devname (it defaults to /dev/pts/1) by setting PVT.flag_rtcm_tty_port=true in the configuration file.

Galileo ephemerides are sent in the message type that matches the navigation message they were decoded from: MT1045 for F/NAV (E5a) and MT1046 for I/NAV (E1 and E5b). A receiver that decodes both sends both. In the Multiple Signal Messages, the signal identifier follows the tracked component, as the RINEX observation codes do: for instance, GPS L5 is reported as 5I or 5Q, and Galileo E1 as 1B or 1C.

Message type 1046, its PVT.rtcm_MT1046_rate_ms option, and the signal identifiers that follow the tracked component are only present in the next branch of the upstream repository, and will be included in the next GNSS-SDR stable release. GNSS-SDR v0.0.22 only sends Galileo F/NAV ephemerides (MT1045).

The Galileo HAS corrections are also sent, as each HAS message is received, in State Space Representation (SSR) messages:

  • RTCM SSR, for GPS: MT1057 (orbit corrections), MT1058 (clock corrections, for the full set and the subset of satellites), MT1059 (code biases), and MT1060 (combined orbit and clock corrections).
  • IGS SSR[^IGSSSR], in the IGS proprietary message 4076, for GPS and Galileo: IGM01 (orbit corrections, subtypes 21 and 61), IGM02 (clock corrections, subtypes 22 and 62), IGM03 (combined orbit and clock corrections, subtypes 23 and 63), and IGM05 (code biases, subtypes 25 and 65).

The combined messages are sent when the orbit and clock corrections share the same SSR update interval, and they contain only the satellites with both corrections; otherwise, orbit and clock corrections are sent in separate messages. The orbit corrections follow the SSR sign convention, opposite to the HAS one; the clock corrections include the Delta Clock Multiplier; the SSR epoch time is the reference time of the HAS message; and the IOD SSR is made of the four least significant bits of the IOD Set ID. Satellites whose corrections are flagged as not available or “do not use” are left out, since these messages cannot flag a satellite as not to be used: a client can keep applying a previous correction of such a satellite until it ages out. Phase biases are not sent.

Galileo HAS messages

Receivers with Galileo E6 channels store each decoded Galileo HAS message in the text file HAS_Messages_YYMMDD_HHMMSS.txt, where the time tag is the local time at which the receiver was started, unless PVT.output_enabled=false is set in the configuration file.

By setting PVT.has_csv_output_enabled=true, the corrections are also stored in Comma-Separated Values (CSV) files, with the columns of the files written by the Galileo HAS Parser, plus a maskID column, and except for the gnssIOD column of the code and phase biases files (see below):

FileContent
HAS_Messages_YYMMDD_HHMMSS_has_orb.csvOrbit corrections, one row per satellite.
HAS_Messages_YYMMDD_HHMMSS_has_clk.csvClock full-set and clock subset corrections, one row per satellite.
HAS_Messages_YYMMDD_HHMMSS_has_cb.csvCode biases, one row per satellite and signal.
HAS_Messages_YYMMDD_HHMMSS_has_cp.csvPhase biases, one row per satellite and signal.

All these files are stored in the folder set by PVT.has_output_file_path, which defaults to PVT.output_path. A CSV file that received no corrections (for instance, the phase biases one, if no phase biases are broadcast) is removed when the receiver stops.

The rows of the CSV files start with the same columns, except for gnssIOD, which is only present in the orbit and clock corrections files:

ColumnDescription
ToWTime of week at which the message was received, in s.
WNGPS week number (the Galileo week number plus 1024).
ToHTime of Hour of the message header, in s. The reference time of the corrections is the last instant with this Time of Hour that is not later than ToW.
IODIOD Set ID of the message header.
maskIDMask ID of the message header. The clock corrections refer to the orbit corrections with the same IOD and maskID. This column is not present in the files written by the Galileo HAS Parser.
gnssIODReference issue of data of the satellite (IODnav for Galileo, IODE for GPS). Only in the _has_orb.csv and _has_clk.csv files.
validityValidity interval of the corrections, in s.
gnssID0 for GPS, 2 for Galileo.
PRNPRN number of the satellite.

Unknown values are written as -1. This is the case of ToW and WN in the messages received when the Galileo System Time is not known. Then, each file adds its own columns:

FileColumnsDescription
_has_orb.csvdelta_radial, delta_in_track, delta_cross_trackOrbit corrections, in m, with the sign convention of the HAS message. A correction that is not available is written as nan.
_has_clk.csvmultiplier, delta_clock_c0, statusDelta Clock Multiplier; clock correction, in m, not multiplied by it; and 0 if the correction is valid, 1 if it is not available, or 2 if the satellite shall not be used. The correction is written as 0 in the last two cases.
_has_cb.csvsignal, code_bias, av_flagIndex of the signal in the HAS Signal Mask (HAS SIS ICD[^HASICD] Table 20); code bias, in m; and 1 if the bias is available, or 0 if it is not (the bias is then written as 0).
_has_cp.csvsignal, phase_bias, av_flag, phase_discontinuity_indIndex of the signal and availability flag, as above; phase bias, in cycles; and Phase Discontinuity Indicator.

The biases of the signals that the Cell Mask of the message excludes are not written. All the decoded messages are stored, whether or not their corrections are applied to the solution: this includes those received with PVT.use_has_corrections=false and those broadcast in test mode. As an example, these are the first lines of a clock corrections file:

text
ToW,WN,ToH,IOD,maskID,gnssIOD,validity,gnssID,PRN,multiplier,delta_clock_c0,status
411368,2445,967,10,5,124,60,0,1,1,0.2050,0
411368,2445,967,10,5,23,60,0,2,1,-1.5000,0

The CSV files and the PVT.has_csv_output_enabled parameter are only present in the next branch of the upstream repository, and will be included in the next GNSS-SDR stable release.

Custom streaming

In addition to the standard output formats, the PVT block offers a custom mechanism for streaming its internal data members to local or remote clients over UDP through a monitoring port which can be enabled by setting PVT.enable_monitor=true in the configuration file. This feature is very useful for real-time monitoring of the PVT block and its outputs. By default, the data is streamed to the localhost address on port 1234 UDP. These settings can be changed with PVT.monitor_client_addresses and PVT.monitor_udp_port. The streamed data members are serialized via Protocol Buffers into a format defined at monitor_pvt.proto. This allows other applications to easily read those messages, either using C++, Java, Python, C#, Dart, Go, or Ruby, among other languages, hence enhancing Interoperability.

The following table shows the complete list of streamed parameters:

NameTypeDescription
tow_at_current_symbol_msuint32_tTime of week of the current symbol, in [ms].
weekuint32_tPVT GPS week.
rx_timedoublePVT GPS time.
user_clk_offsetdoubleUser clock offset, in [s].
pos_xdoublePosition X component in ECEF, expressed in [m].
pos_ydoublePosition Y component in ECEF, expressed in [m].
pos_zdoublePosition Z component in ECEF, expressed in [m].
vel_xdoubleVelocity X component in ECEF, expressed in [m/s].
vel_ydoubleVelocity Y component in ECEF, expressed in [m/s].
vel_zdoubleVelocity Z component in ECEF, expressed in [m/s].
cov_xxdoublePosition variance in the X component, σxx2\sigma_{xx}^2, in [m2m^2].
cov_yydoublePosition variance in the Y component, σyy2\sigma_{yy}^2, in [m2m^2].
cov_zzdoublePosition variance in the X component, σzz2\sigma_{zz}^2, in [m2m^2].
cov_xydoublePosition XY covariance σxy2\sigma_{xy}^2, in [m2m^2].
cov_yzdoublePosition YZ covariance σyz2\sigma_{yz}^2, in [m2m^2].
cov_zxdoublePosition ZX covariance σzx2\sigma_{zx}^2, in [m2m^2].
latitudedoubleLatitude, in [deg]. Positive: North.
longitudedoubleLongitude, in [deg]. Positive: East.
heightdoubleHeight, in [m].
valid_satsuint32_tNumber of valid satellites.
solution_statusuint32_tRTKLIB solution status.
solution_typeuint32_tRTKLIB solution type (0: xyz-ecef, 1: enu-baseline).
ar_ratio_factorfloatAmbiguity resolution ratio factor for validation.
ar_ratio_thresholdfloatAmbiguity resolution ratio threshold for validation.
gdopdoubleGeometric dilution of precision (GDOP).
pdopdoublePosition (3D) dilution of precision (PDOP).
hdopdoubleHorizontal dilution of precision (HDOP).
vdopdoubleVertical dilution of precision (VDOP).
user_clk_drift_ppmdoubleUser clock drift, in parts per million.
utc_timestringPVT UTC time (RFC 3339 datetime string). This metric is available starting from GNSS-SDR v0.0.19.
vel_edoubleEast component of the velocity in the local ENU frame, in m/s. This metric is available starting from GNSS-SDR v0.0.19.
vel_ndoubleNorth component of the velocity in the local ENU frame, in m/s. This metric is available starting from GNSS-SDR v0.0.19.
vel_udoubleUp component of the velocity in the local ENU frame, in m/s. This metric is available starting from GNSS-SDR v0.0.19.
cogdoubleCourse Over Ground, in degrees. This metric is available starting from GNSS-SDR v0.0.19.
galhas_statusuint32_tGalileo HAS status: 1 if at least one satellite in the solution has HAS orbit and clock corrections, 0 otherwise. This metric is available starting from GNSS-SDR v0.0.19. Up to GNSS-SDR v0.0.22, it is 1 when HAS biases are available for some satellite, whether or not it gets HAS corrections in the solution.
geohashstringEncoded geographic location. This metric is available starting from GNSS-SDR v0.0.19.
tracked_satellitesrepeated TrackedSatelliteOne entry per tracked satellite and signal with a computed azimuth and elevation, including whether multiple signals from that satellite were combined, whether the observation was actually used in the position solution, the health status broadcast for that signal, and whether it got Galileo HAS corrections.

Each TrackedSatellite entry contains the following fields:

NameTypeDescription
prnuint32Satellite PRN.
systemstringConstellation identifier: G (GPS), E (Galileo), R (GLONASS), C (BeiDou), S (SBAS), or J (QZSS).
signalstringTwo-character GNSS-SDR signal identifier, for example 1C, 1B, or 5X. It names the channel type, not the tracked component.
observation_codestringRINEX 4 observation code (band and attribute) of the tracked signal component, for example 1C for the Galileo E1 pilot or 5I for the GPS L5 data component. It is empty if the Tracking block did not report the component. Only present in the next branch.
azimuth_degdoubleSatellite azimuth, in degrees, in the range (−180,180](-180, 180] (positive: East of North).
elevation_degdoubleSatellite elevation, in degrees. It can be negative for a satellite tracked below the local horizon.
combinedbooltrue if more than one signal from the same satellite was available and combined in the position solution (e.g., the Galileo E1+E5a ionosphere-free combination).
usedbooltrue if this observation contributed to the position solution. It is false for a satellite that was tracked and had its azimuth and elevation computed, but was excluded from the solution (e.g., because it was below PVT.elevation_mask, rejected by RAIM FDE, or discarded by the solver because of its health status).
healthybooltrue unless the navigation message broadcast by the satellite flags this signal as unhealthy (or, when no ephemeris has been decoded yet, the almanac does). It is independent of used: a satellite can be reported as unhealthy and still used when PVT.use_unhealthy_sats=true, or as healthy and not used because of the elevation mask or RAIM. It is true when no health information is available for that signal.
has_correctedbooltrue if the orbit and clock of the satellite carry Galileo HAS corrections, and this signal its HAS code bias. It is independent of used. Only present in the next branch.

Signals are listed individually (one entry per satellite and signal), not merged: a satellite whose signals were combined appears as one entry per signal, all flagged with combined = true. The azimuth and elevation are reported as computed by the solver, so a corrupt ephemeris or almanac can result in NaN values for those fields; client applications are expected to handle that case explicitly (for instance, by not drawing that satellite in a sky plot). Such a satellite is never used in the position solution.

The PVT monitor can also stream GPS and Galileo ephemeris data by setting PVT.enable_monitor_ephemeris=true in the configuration file. The streamed data members are serialized via Protocol Buffers into formats defined at gps_ephemeris.proto and galileo_ephemeris.proto, prepended by character G for GPS data and by character E for Galileo data. By default, data are streamed to the localhost address on port 1234 UDP. These settings can be changed with PVT.monitor_ephemeris_client_addresses and PVT.monitor_ephemeris_udp_port parameters in the configuration file.

Read more about standard output formats on our Interoperability page.


Implementation: RTKLIB_PVT

This implementation makes use of the positioning libraries of RTKLIB, a well-known open-source program package for standard and precise positioning. It accepts the following parameters:

Global ParameterDescriptionRequired
GNSS-SDR.SUPL_gps_ephemeris_xmlName of an XML file containing GPS ephemeris data. It defaults to ./gps_ephemeris.xmlOptional
GNSS-SDR.observation_dateApproximate date of the signal capture, in YYYY-MM-DD or YYYY format, used to resolve the GPS week-number rollover when post-processing recorded files (see the Global receiver parameters documentation). If it is not set, the date is derived from the computer’s clock, which is the right choice for real-time operation. It defaults to empty.Optional
GNSS-SDR.pre_2009_file[true, false]: If you are processing raw data files containing GPS L1 C/A signals dated before July 14, 2009, you can set this parameter to true in order to get the right date and time. It defaults to false. Deprecated since it can only select the August 1999 - April 2019 week-number era: use GNSS-SDR.observation_date instead.Optional
ParameterDescriptionRequired
implementationRTKLIB_PVTMandatory
output_rate_msRate at which PVT solutions will be computed, in ms. The minimum is 20 ms, and the value must be a multiple of it. It defaults to 500 ms.Optional
display_rate_msRate at which PVT solutions will be displayed in the terminal, in ms. It must be multiple of output_rate_ms. It defaults to 500 ms.Optional
positioning_mode[Single, Static, Kinematic, PPP_Static, PPP_Kinematic] Set positioning mode. Single: Single point positioning. Static: RTK relative positioning with a stationary rover antenna. Kinematic: RTK relative positioning for a moving receiver. PPP_Static: Precise Point Positioning with static mode. PPP_Kinematic: Precise Point Positioning for a moving receiver. It defaults to Single. The RTK modes Static and Kinematic require base-station corrections received via the NTRIP client, available since GNSS-SDR v0.0.22.Optional
num_bands[1: L1 Single frequency, 2: L1 and L2 Dual‐frequency, 3: L1, L2 and L5 Triple‐frequency] This option is automatically configured according to the Channels configuration. This option can be useful to force some configuration (e.g., single-band solution in a dual-frequency receiver).Optional
elevation_maskSet the elevation mask angle, in degrees. It defaults to 15o15^{o}.Optional
dynamics_model[0: none, 1: velocity, 2: acceleration] Set the dynamics model of the receiver, used in the Kinematic and PPP_Kinematic positioning modes. If set to 11, the receiver position is predicted with the estimated velocity; if set to 22, the estimated acceleration also contributes to the prediction. The process noise grows with the time elapsed between epochs, and can be configured with PVT.sigma_acch and PVT.sigma_accv. It defaults to 00 (no dynamics model).Optional
satellite_ephemeris[Broadcast, SBAS]: Select the satellite ephemeris/clock correction source. Broadcast uses the broadcast ephemeris and clock without SBAS satellite corrections. SBAS uses the broadcast ephemeris and applies fast and long-term orbit/clock corrections received from an SBAS L1 telemetry channel to GPS observations; satellites without a current valid correction are excluded. It defaults to Broadcast.Optional
sbas_satelliteSelect the SBAS PRN whose correction stream is used. Set it to an SBAS PRN in the range 120–138, or to 0 to select and remain with the first received SBAS stream. Values outside that range are treated as 0. It defaults to 0.Optional
iono_model[OFF, Broadcast, SBAS, Iono-Free-LC, Estimate_STEC]. Set ionospheric correction options. OFF: Do not apply an ionospheric correction. Broadcast: Apply the broadcast ionospheric model. SBAS: Apply SBAS ionospheric grid corrections received in message types 18 and 26. Iono-Free-LC: Use an ionosphere-free linear combination of dual-frequency measurements. Estimate_STEC: Estimate the ionospheric delays as additional states of the filter, in the RTK positioning modes and, only in the next branch, in the PPP ones, where it selects the uncombined model (in Single mode, no ionospheric correction is applied). This option decides the pseudorange model for every satellite of a system: only Iono-Free-LC combines two bands (satellites lacking the second band are then excluded) and Estimate_STEC, in the PPP modes, uses every band on its own, while OFF, Broadcast and SBAS use the first band alone with its broadcast group delay (TGD/BGD), falling back to the second band alone only when the first one is missing. See Band selection. It defaults to OFF.Optional
trop_model[OFF, Saastamoinen, SBAS, Estimate_ZTD, Estimate_ZTD_Grad]. Set the tropospheric correction option. OFF: Do not apply a tropospheric correction. Saastamoinen: Apply the Saastamoinen model. SBAS: Apply the SBAS MOPS model. Estimate_ZTD: Estimate zenith total delay as an EKF state. Estimate_ZTD_Grad: Estimate zenith total delay and horizontal gradients as EKF states. It defaults to OFF.Optional
enable_rx_clock_correction[true, false]: If set to true, the receiver makes use of the PVT solution to correct timing in observables, hence providing continuous measurements in long observation periods. If set to false, the Time solution is only used in the computation of Observables when the clock offset estimation exceeds the value of max_clock_offset_ms. This parameter defaults to false.Optional
max_clock_offset_msIf enable_rx_clock_correction is set to false, this parameter sets the maximum allowed local clock offset with respect to the Time solution. If the estimated offset exceeds this parameter, a clock correction is applied to the computation of Observables. It defaults to 40 ms.Optional
code_phase_error_ratio_l1Code/phase error ratio RrR_r for the L1 band. It defaults to 100100.Optional
carrier_phase_error_factor_aCarrier phase error factor aσ2a_{\sigma}^2. It defaults to 0.0030.003 m.Optional
carrier_phase_error_factor_bCarrier phase error factor bσ2b_{\sigma}^2. It defaults to 0.0030.003 m.Optional
error_factor_snrSNR-dependent term of the observation error model, in m. If set to a positive value, observations with a carrier-to-noise density ratio below error_snr_max are deweighted accordingly (in relative positioning, using both the rover’s and the base’s reported values); its recommended value is 0.0050.005 m. It defaults to 0.00.0 (disabled), preserving the elevation-only error model. This parameter is available since GNSS-SDR v0.0.22.Optional
error_snr_maxReference carrier-to-noise density ratio (dB-Hz) above which no SNR penalty is applied by the error_factor_snr term. It defaults to 5252 dB-Hz. This parameter is available since GNSS-SDR v0.0.22.Optional
error_factor_rcv_stdReceiver-reported standard deviation term of the observation error model. If set to a positive value, observations are weighted with the pseudorange / carrier-phase standard deviations reported in the observation structure. It defaults to 0.00.0 (disabled). This parameter is available since GNSS-SDR v0.0.22.Optional
slip_thresholdSet the cycle‐slip threshold (m) of geometry‐free LC carrier‐phase difference between epochs. It defaults to 0.050.05. In the PPP modes, the difference is taken with respect to the median of the satellites of the same GNSS and bands. Only present in the next branch.Optional
slip_threshold_dopplerSet the cycle-slip threshold (m/s) of the phase-Doppler difference, after removing the receiver clock error common to all satellites (estimated as the median range-rate residual). It defaults to 00 (test disabled). This parameter is available since GNSS-SDR v0.0.22.Optional
threshold_reject_GDOPSet the reject threshold of GDOP. If the GDOP is over the value, the observable is excluded for the estimation process as an outlier. It defaults to 30.030.0.Optional
threshold_reject_innovationSet the reject threshold of innovation (pre‐fit residual) (m) for code observables. If the innovation is over the value, the observable is excluded for the estimation process as an outlier. It defaults to 30.030.0 m. In the PPP modes, the offset common to the satellites of a receiver clock is left out of the test, see Outlier rejection. Only present in the next branch.Optional
threshold_reject_innovation_phaseSet the reject threshold of innovation (pre‐fit residual) (m) for carrier-phase observables. It defaults to the value of threshold_reject_innovation, so existing configurations behave identically; a recommended value is 5.05.0 m in RTK modes. This parameter is available since GNSS-SDR v0.0.22.Optional
number_filter_iterSet the number of iteration in the measurement update of the estimation filter. If the baseline length is very short like 1 m, the iteration may be effective to handle the nonlinearity of the measurement equation. It defaults to 1.Optional
sigma_biasSet the process noise standard deviation of carrier‐phase bias σbias\sigma_{bias}, in cycles/s\sqrt{s}. It defaults to 0.00010.0001 cycles/s\sqrt{s}.Optional
sigma_tropSet the process noise standard deviation of zenith tropospheric delay σZ\sigma_{Z}, in m/s\sqrt{s}. It defaults to 0.00010.0001 m/s\sqrt{s}.Optional
sigma_acchSet the process noise standard deviation of the receiver acceleration, horizontal component, in m/s2/s^2/ \sqrt{s}. It defaults to 0.10.1 m/s2/s^2/ \sqrt{s}. If PVT.dynamics_model is set to 00, this parameter is not used.Optional
sigma_accvSet the process noise standard deviation of the receiver acceleration, vertical component, in m/s2/s^2/ \sqrt{s}. It defaults to 0.010.01 m/s2/s^2/ \sqrt{s}. If PVT.dynamics_model is set to 00, this parameter is not used.Optional
sigma_ionoSet the process noise standard deviation of vertical ionospheric delay per 10 km baseline, in m/s\sqrt{s}. It defaults to 0.0010.001 m/s\sqrt{s}. In the uncombined model of the PPP modes, it is the process noise standard deviation of the slant ionospheric delay of each satellite, and it defaults to 0.10.1 m/s\sqrt{s}. Only present in the next branch.Optional
bias_0Set the initial-state standard deviation of the carrier‐phase bias (ambiguity), in m. It defaults to 3030 m.Optional
iono_0Set the initial-state standard deviation of vertical ionospheric delay per 10 km baseline, in m. It defaults to 0.030.03 m.Optional
trop_0Set the initial-state standard deviation of zenith tropospheric delay, in m. It defaults to 0.30.3 m.Optional
AR_GPS[OFF, Continuous, Instantaneous, Fix-and-Hold, PPP-AR]. Set the strategy of integer ambiguity resolution for GPS. OFF: No ambiguity resolution. Continuous: Continuously static integer ambiguities are estimated and resolved. Instantaneous: Integer ambiguity is estimated and resolved on an epoch‐by‐epoch basis. Fix-and-Hold: Continuously static integer ambiguities are estimated and resolved, and if the validation is OK, the ambiguities are tightly constrained to the resolved values. PPP-AR: Ambiguity resolution in PPP (experimental, only applicable to PPP‐* modes). It defaults to Continuous.Optional
min_ratio_to_fix_ambiguitySet the integer ambiguity validation threshold for the ratio‐test, which uses the ratio of squared residuals of the best integer vector to the second‐best vector. It defaults to 3.03.0.Optional
ar_ratio_minLower bound for the satellite-count-dependent ambiguity-resolution ratio threshold. If set to a value different from ar_ratio_max, the effective ratio threshold scales with the number of ambiguity pairs; equal values keep the fixed min_ratio_to_fix_ambiguity threshold. It defaults to 0.00.0. This parameter is available since GNSS-SDR v0.0.22.Optional
ar_ratio_maxUpper bound for the satellite-count-dependent ambiguity-resolution ratio threshold. It defaults to 0.00.0. This parameter is available since GNSS-SDR v0.0.22.Optional
ar_max_position_varianceMaximum float-position variance (m²) to attempt integer ambiguity resolution, avoiding false fixes while the filter is still converging. Set it to 00 to disable this gate. It defaults to 0.250.25 m². This parameter is available since GNSS-SDR v0.0.22.Optional
ar_filter[true, false]: If set to true, newly-risen satellites are excluded from ambiguity resolution, and the fix is retried when their inclusion degrades the AR ratio. It defaults to true. This parameter is available since GNSS-SDR v0.0.22.Optional
min_fix_satsMinimum number of satellites required to fix integer ambiguities. It defaults to 44. This parameter is available since GNSS-SDR v0.0.22.Optional
min_hold_satsMinimum number of satellites required to hold integer ambiguities in the Fix-and-Hold strategy. It defaults to 55. This parameter is available since GNSS-SDR v0.0.22.Optional
min_drop_satsMinimum number of satellites in view to enable single-satellite exclusion cycling when no fix is achieved. Set it to 00 to disable this mechanism. It defaults to 1010. This parameter is available since GNSS-SDR v0.0.22.Optional
var_holdambVariance (cycles²) of the pseudo-measurements that constrain the ambiguities in the Fix-and-Hold strategy. It defaults to 0.10.1 cycles². This parameter is available since GNSS-SDR v0.0.22.Optional
min_lock_to_fix_ambiguitySet the minimum lock count to fix integer ambiguity. If the lock count is less than the value, the ambiguity is excluded from the fixed integer vector. It defaults to 00.Optional
min_elevation_to_fix_ambiguitySet the minimum elevation angle (in degrees) to fix integer ambiguity. If the elevation angle is less than the value, the ambiguity is excluded from the fixed integer vector. It defaults to 0o0^{o}.Optional
outage_reset_ambiguitySet the outage count to reset ambiguity. If the data outage count is over the value, the estimated ambiguity is reset to the initial value. It defaults to 55.Optional
estimate_qzss_isb[true, false]: If set to true, the single-point solver estimates a separate QZS-GPS inter-system bias instead of assuming QZSS shares the GPS receiver clock. The extra unknown requires one more satellite in mixed GPS + QZSS epochs, so enable it only in open-sky scenarios with six or more satellites in view. It defaults to false. This parameter is available since GNSS-SDR v0.0.22.Optional
ntrip_client_enabled[true, false]: If set to true, the built-in NTRIP client is activated, providing base-station corrections to the RTK engine. It requires positioning_mode set to Static or Kinematic and, per constellation and freely combined, GPS L1 C/A alone or together with one of L2C or L5, Galileo E1 alone or together with E5a, and BeiDou B1C (single-band sets run single-frequency RTK). It defaults to false. This parameter is available since GNSS-SDR v0.0.22. With positioning_mode set to PPP_Static or PPP_Kinematic, the client takes the stream as SSR corrections to the broadcast orbits and clocks instead, see SSR corrections through NTRIP. Only present in the next branch.Optional
ntrip_caster_addressHost name or IP address of the NTRIP caster, without protocol prefix, port, or path. This parameter is available since GNSS-SDR v0.0.22.Mandatory if ntrip_client_enabled=true
ntrip_caster_portTCP port of the NTRIP caster. It defaults to 21012101. This parameter is available since GNSS-SDR v0.0.22.Optional
ntrip_mountpointMountpoint providing the RTCM 3 correction stream. This parameter is available since GNSS-SDR v0.0.22.Mandatory if ntrip_client_enabled=true
ntrip_usernameUser name for HTTP Basic authentication against the caster. This parameter is available since GNSS-SDR v0.0.22.Optional
ntrip_passwordPassword for HTTP Basic authentication against the caster. Credentials are redacted from the RTKLIB trace files. This parameter is available since GNSS-SDR v0.0.22.Optional
ntrip_password_envName of an environment variable from which the password is read, keeping secrets out of the configuration file. It cannot be set together with ntrip_password. This parameter is available since GNSS-SDR v0.0.22.Optional
ntrip_station_idIf set to a positive value, the correction stream is filtered to that exact station ID; if set to 00, any station is accepted, but observations and base position remain bound to a single ID. It defaults to 00. This parameter is available since GNSS-SDR v0.0.22.Optional
ntrip_version[1, 2]: NTRIP protocol version. If set to 22, the client prefers NTRIP v2 and automatically retries once over NTRIP v1 when the caster does not support it; if set to 11, the legacy protocol is used directly. It defaults to 22. This parameter is available since GNSS-SDR v0.0.22.Optional
ntrip_tls_enabled[true, false]: If set to true, the connection uses TLS 1.2 or newer, with certificate validation against the system CA store and host name verification. It defaults to false. This parameter is available since GNSS-SDR v0.0.22.Optional
ntrip_inactivity_timeout_msInactivity timeout of the NTRIP connection, in ms. Valid values range from 10001000 ms to 24 hours. It defaults to 1000010000 ms. This parameter is available since GNSS-SDR v0.0.22.Optional
ntrip_reconnect_interval_msDelay between reconnection attempts, in ms. Set it to 00 to disable operational reconnects (the single v2-to-v1 compatibility retry is always performed). It defaults to 1000010000 ms. This parameter is available since GNSS-SDR v0.0.22.Optional
ntrip_max_correction_age_sMaximum age of the corrections, in s. Older corrections are discarded. It defaults to 5.05.0 s for base-station corrections, and to 9090 s for SSR corrections in the PPP modes. This parameter is available since GNSS-SDR v0.0.22.Optional
ntrip_fallback_to_single[true, false]: If set to true, the receiver keeps operating with an explicitly labeled single-point solution when base-station corrections are unavailable. It defaults to true. This parameter is available since GNSS-SDR v0.0.22.Optional
ntrip_send_gga[true, false]: If set to true, the rover position is periodically reported to the caster as an NMEA GGA sentence, as required by Virtual Reference Station and nearest-station mountpoints. No sentence is sent before the receiver produces its first position fix. It defaults to true. This parameter is available since GNSS-SDR v0.0.22.Optional
ntrip_gga_period_msPeriod between NMEA GGA reports, in ms. Valid values range from 10001000 ms to 24 hours. It defaults to 1000010000 ms. This parameter is available since GNSS-SDR v0.0.22.Optional
ssr_reference_point[Primary_Frequency, Navigation_Message, Center_Of_Mass]: Point of the satellite that the orbits corrected with SSR corrections refer to, used by the satellite antenna models. Primary_Frequency: antenna phase center of L1 or E1, as in IGS SSR. Navigation_Message: antenna phase center that the navigation message refers to, as in Galileo HAS and in the SSR messages generated from it. Center_Of_Mass: center of mass of the satellite, which requires antex_file. It defaults to Primary_Frequency. Only present in the next branch.Optional
raim_fde[0, 1]: Set whether RAIM (receiver autonomous integrity monitoring) FDE (fault detection and exclusion) feature is enabled or not. It defaults to 00 (RAIM not enabled)Optional
reject_GPS_IIA[0, 1]: Set whether the satellites in eclipse, that is, in the shadow of the Earth, are left out of the PPP solution or not. The attitude of a satellite in eclipse departs from the nominal one, which shifts its carrier phase (phase windup) and its antenna phase center in a way that the PPP models do not follow, and this degrades the solution. The name of the parameter comes from RTKLIB, where the exclusion is limited to the GPS Block IIA satellites, of unpredictable yaw attitude in eclipse, when the type of each satellite is known. GNSS-SDR does not pass the satellite type to the filter, so every satellite in eclipse is left out, whatever its constellation. Only applies to the PPP modes. It defaults to 11 (rejection). This default is only present in the next branch of the upstream repository. In GNSS-SDR v0.0.22, it defaults to 00 (no rejection).Optional
phwindup[0, 1]: Set whether the phase windup correction ϕpw\phi_{pw} for PPP modes is applied or not. It defaults to 00 (no phase windup correction).Optional
earth_tide[0, 1]: Set whether earth tides correction is applied or not. If set to 11, the solid earth tides correction dr,disp\mathbf{d}_{r,disp} is applied to the PPP solution, following the description in IERS Technical Note No. 32[^McCarthy04], Chapter 7. It defaults to 00 (no Earth tide correction).Optional
antex_fileANTEX file, version 1.4 or 2.0, with the calibrations of the satellite antennas and, optionally, of the receiver antenna. If set, the measurements of GPS and Galileo satellites are referred to the antenna phase center of each signal in use. Only applies to the PPP modes, see Antenna models. It defaults to empty (no antenna models). Only present in the next branch.Optional
satellite_metadata_fileIGS satellite metadata file (SINEX format), with the PRN of each satellite over time. Needed for the satellite antennas of an ANTEX 2.0 file, which identifies them by their space vehicle number. Available here. It defaults to empty. Only present in the next branch.Optional
receiver_antex_fileANTEX file with the calibration of the receiver antenna, if it is not in antex_file. It defaults to empty. Only present in the next branch.Optional
antenna_typeName of the receiver antenna and its radome, as they appear in the ANTEX file (for instance, NAX3G+C NONE), which selects the calibration of the receiver antenna. Only applies to the PPP modes. It defaults to empty (receiver antenna not modeled). Only present in the next branch.Optional
antenna_delta_east_mEast component of the position of the antenna reference point with respect to the marker, in m. Only applies to the PPP modes, in which the position of the marker is then reported. It defaults to 0.00.0 m. Only present in the next branch.Optional
antenna_delta_north_mNorth component of the position of the antenna reference point with respect to the marker, in m. It defaults to 0.00.0 m. Only present in the next branch.Optional
antenna_delta_up_mUp component of the position of the antenna reference point with respect to the marker, in m. It defaults to 0.00.0 m. Only present in the next branch.Optional
output_enabled[true, false]: If set to false, output data files are not stored. It defaults to true.Optional
rtcm_output_file_enabled[true, false]: If set to false, RTCM binary files are not stored. It defaults to false.Optional
has_csv_output_enabled[true, false]: If set to true, receivers with Galileo E6 channels store the Galileo HAS corrections in CSV files (see Galileo HAS messages). It defaults to false. Only present in the next branch.Optional
gpx_output_enabled[true, false]: If set to false, GPX files are not stored. It defaults to output_enabled.Optional
geojson_output_enabled[true, false]: If set to false, GeoJSON files are not stored. It defaults to output_enabled.Optional
kml_output_enabled[true, false]: If set to false, KML files are not stored. It defaults to output_enabled.Optional
xml_output_enabled[true, false]: If set to false, XML files are not stored. It defaults to output_enabled.Optional
rinex_output_enabled[true, false]: If set to false, RINEX files are not stored. It defaults to output_enabled.Optional
rinex_version[2: version 2.11, 3: version 3.02, 4: version 4.02] Version of the generated RINEX files. It defaults to 3. If GPS L2C and/or L5 channels are configured without GPS L1 C/A channels, or QZSS L5 channels without QZSS L1 C/A channels, version 4 is used regardless of this setting. Version 4 is available since GNSS-SDR v0.0.22.Optional
rinex_nameSets the base name of the RINEX files. If this parameter is not specified, a default one will be assigned. The command-line flag --RINEX_name, if present, overrides this parameter.Optional
rinexobs_rate_msRate at which observations are annotated in the RINEX file, in ms. The minimum is 20 ms, and must be a multiple of output_rate_ms. It defaults to 1000 ms.Optional
nmea_output_file_enabled[true, false]: If set to false, NMEA sentences are not stored. It defaults to output_enabled.Optional
nmea_dump_filenameName of the file containing the generated NMEA sentences in ASCII format. It defaults to ./nmea_pvt.nmea.Optional
flag_nmea_tty_port[true, false]: If set to true, the NMEA sentences are also sent to a serial port device. It defaults to false.Optional
nmea_dump_devnameIf flag_nmea_tty_port is set to true, descriptor of the serial port device. It defaults to /dev/tty1.Optional
flag_rtcm_server[true, false]: If set to true, it runs up a TCP server that is serving RTCM messages to the connected clients during the execution of the software receiver. It defaults to false.Optional
rtcm_tcp_portIf flag_rtcm_server is set to true, TCP port from which the RTCM messages will be served. It defaults to 2101.Optional
rtcm_station_idStation ID reported in the generated RTCM messages. It defaults to 1234.Optional
rtcm_MT1045_rate_msRate at which RTCM Message Type 1045 (Galileo F/NAV Ephemeris data) will be generated, in ms. If set to 0, mutes this message. It defaults to 5000 ms.Optional
rtcm_MT1046_rate_msRate at which RTCM Message Type 1046 (Galileo I/NAV Ephemeris data) will be generated, in ms. If set to 0, mutes this message. It defaults to the value of rtcm_MT1045_rate_ms. Only present in the next branch.Optional
rtcm_MT1019_rate_msRate at which RTCM Message Type 1019 (GPS Ephemeris data) will be generated, in ms. If set to 0, mutes this message. It defaults to 5000 ms.Optional
rtcm_MT1020_rate_msRate at which RTCM Message Type 1020 (GLONASS Ephemeris data) will be generated, in ms. If set to 0, mutes this message. It defaults to 5000 ms.Optional
rtcm_MSM_rate_msDefault rate at which RTCM Multiple Signal Messages will be generated. It defaults to 1000 ms.Optional
rtcm_MT1077_rate_msRate at which RTCM Multiple Signal Messages GPS MSM7 (MT1077 - Full GPS observations) will be generated, in ms. If set to 0, mutes this message. It defaults to rtcm_MSM_rate_ms.Optional
rtcm_MT1087_rate_msRate at which RTCM Multiple Signal Messages GLONASS MSM7 (MT1087 - Full GLONASS observations) will be generated, in ms. If set to 0, mutes this message. It defaults to rtcm_MSM_rate_ms.Optional
rtcm_MT1097_rate_msRate at which RTCM Multiple Signal Messages Galileo MSM7 (MT1097 - Full Galileo observations) will be generated, in ms. If set to 0, mutes this message. It defaults to rtcm_MSM_rate_ms.Optional
flag_rtcm_tty_port[true, false]: If set to true, the generated RTCM messages are also sent to a serial port device. It defaults to false.Optional
rtcm_dump_devnameIf flag_rtcm_tty_port is set to true, descriptor of the serial port device. It defaults to /dev/pts/1.Optional
output_pathBase path in which output data files will be stored. If the specified path does not exist, it will be created. It defaults to the current path ./.Optional
rinex_output_pathBase path in which RINEX files will be stored. If the specified path does not exist, it will be created. It defaults to output_path.Optional
gpx_output_pathBase path in which GPX files will be stored. If the specified path does not exist, it will be created. It defaults to output_path.Optional
geojson_output_pathBase path in which GeoJSON files will be stored. If the specified path does not exist, it will be created. It defaults to output_path.Optional
kml_output_pathBase path in which KML files will be stored. If the specified path does not exist, it will be created. It defaults to output_path.Optional
xml_output_pathBase path in which XML files will be stored. If the specified path does not exist, it will be created. It defaults to output_path.Optional
nmea_output_file_pathBase path in which NMEA messages will be stored. If the specified path does not exist, it will be created. It defaults to output_path.Optional
rtcm_output_file_pathBase path in which RTCM binary files will be stored. If the specified path does not exist, it will be created. It defaults to output_path.Optional
has_output_file_pathBase path in which the files with the Galileo HAS messages will be stored (see Galileo HAS messages). If the specified path does not exist, it will be created. It defaults to output_path. This parameter is available since GNSS-SDR v0.0.19.Optional
kml_rate_msOutput rate of the KML annotations, in ms. It defaults to the value set by output_rate.Optional
gpx_rate_msOutput rate of the GPX annotations, in ms. It defaults to the value set by output_rate.Optional
geojson_rate_msOutput rate of the GeoJSON annotations, in ms. It defaults to the value set by output_rate.Optional
nmea_rate_msOutput rate of the NMEA messages, in ms. It defaults to the value set by output_rate.Optional
dump[true, false]: If set to true, it enables the PVT internal binary data file logging. It defaults to false.Optional
dump_filenameIf dump is set to true, name of the file in which internal data will be stored. This parameter accepts either a relative or an absolute path; if there are non-existing specified folders, they will be created. It defaults to ./pvt.dat.Optional
dump_mat[true, false]. If dump=true, when the receiver exits it can convert the “.dat” file stored by this block into a “.mat” file directly readable from Matlab and Octave. If the receiver has processed more than a few minutes of signal, this conversion can take a long time. In systems with limited resources, you can turn off this conversion by setting this parameter to false. It defaults to true, so the “.mat” file is generated by default if dump=true.Optional
enable_monitor[true, false]: If set to true, the PVT real-time monitoring port is activated. This feature allows streaming the internal parameters and outputs of the PVT block to local or remote clients over UDP. It defaults to false.Optional
monitor_client_addressesDestination IP address(es) of the real-time monitoring port. To specify multiple clients, use an underscore delimiter character ( _ ) between addresses. As many addresses can be added as deemed necessary. Duplicate addresses are ignored. It defaults to 127.0.0.1 (localhost).Optional
monitor_udp_portDestination UDP port number of the real-time monitoring port. Must be within the range from 0 to 65535. Ports outside this range are treated as 0. The port number is the same for all the clients. It defaults to 1234. To specify multiple ports, use an underscore delimiter character ( _ ) between ports.Optional
enable_monitor_ephemeris[true, false]: If set to true, the PVT real-time monitoring port streams ephemeris data to local or remote clients over UDP. It defaults to false.Optional
monitor_ephemeris_client_addressesDestination IP address(es) of the real-time monitoring port for ephemeris data. To specify multiple clients, use an underscore delimiter character ( _ ) between addresses. As many addresses can be added as deemed necessary. Duplicate addresses are ignored. It defaults to 127.0.0.1 (localhost).Optional
monitor_ephemeris_udp_portDestination UDP port number of the real-time monitoring port for ephemeris data. Must be within the range from 0 to 65535. Ports outside this range are treated as 0. The port number is the same for all the clients. It defaults to 1234.Optional
enable_protobuf[true, false]: If set to true, the data serialization is done using Protocol Buffers, with the format defined at monitor_pvt.proto. An example of usage is the gnss-sdr-monitor. If set to false, it uses Boost Serialization. For an example of usage of the latter, check the gnss-sdr-pvt-monitoring-client. This parameter defaults to true (Protocol Buffers is used).Optional
use_e6_for_pvt[true, false]: If set to false, the PVT engine will ignore observables from Galileo E6B signals. It defaults to true, so observables will be used if found. This feature is present in GNSS-SDR v0.0.18 and later versions. Since GNSS-SDR v0.0.22, this setting is independent of Observables.enable_E6, which controls whether E6 observables are generated.Optional
use_has_corrections[true, false]: If set to false, the PVT engine will ignore corrections from the Galileo High Accuracy Service. It defaults to true, so corrections will be applied if available. This feature is present in GNSS-SDR v0.0.18 and later versions. See Galileo HAS corrections.Optional
enable_pvt_kf[true, false]: If set to true, it enables the Kalman filter of the PVT solution. It defaults to false. This configuration parameter is available starting from GNSS-SDR v0.0.19.Optional
kf_measures_ecef_pos_sd_mStandard deviation of the position estimations, in meters. It defaults to 1.0 [m]. Only used if PVT.enable_pvt_kf=true. This configuration parameter is available starting from GNSS-SDR v0.0.19.Optional
kf_measures_ecef_vel_sd_msStandard deviation of the velocity estimations, in meters per second. It defaults to 0.1 [m/s]. Only used if PVT.enable_pvt_kf=true. This configuration parameter is available starting from GNSS-SDR v0.0.19.Optional
kf_system_ecef_pos_sd_mStandard deviation of the dynamic system model for position, in meters. It defaults to 2.0 [m]. Only used if PVT.enable_pvt_kf=true. This configuration parameter is available starting from GNSS-SDR v0.0.19.Optional
kf_system_ecef_vel_sd_msStandard deviation of the dynamic system model for velocity, in meters per second. It defaults to 0.5 [m/s]. Only used if PVT.enable_pvt_kf=true. This configuration parameter is available starting from GNSS-SDR v0.0.19.Optional
use_unhealthy_sats[true, false]: If set to true, the PVT engine will use observables from satellites flagged as unhealthy in the navigation message. It defaults to false, so those observables will be ignored. This feature is present in GNSS-SDR v0.0.18 and later versions. Regardless of this setting, the healthy field of the TrackedSatellite message streamed by the custom streaming port reports the health status broadcast by each tracked satellite.Optional
glonass_strict_health[true, false]: If set to true, a GLONASS satellite is excluded from the PVT solution if either the lnl_n health flag or the most significant bit of the BnB_n word of its navigation message flags it as unhealthy (unless use_unhealthy_sats=true). If set to false, only the lnl_n flag is checked. It defaults to true.Optional
show_local_time_zone[true, false]: If set to true, the time of the PVT solution displayed in the terminal is shown in the local time zone, referred to UTC. It defaults to false, so time is shown in UTC. This parameter does not affect time annotations in other output formats, which are always UTC.Optional
rtk_trace_levelConfigure the RTKLIB trace level (0: off, up to 5: max. verbosity). When set to something > 2, the RTKLIB library become more verbose in the internal logging file. It defaults to 0 (off).Optional
bancroft_init[true, false]: If set to false, the Bancroft initialization in the first iteration of the PVT computation is skipped. It defaults to true. This feature is present in GNSS-SDR v0.0.18 and later versions.Optional

PVT implementation: RTKLIB_PVT.

Example:

ini
;######### PVT CONFIG ############
PVT.implementation=RTKLIB_PVT
PVT.positioning_mode=PPP_Static
PVT.output_rate_ms=100
PVT.display_rate_ms=500
PVT.iono_model=Broadcast
PVT.trop_model=Saastamoinen
PVT.flag_rtcm_server=true
PVT.flag_rtcm_tty_port=false
PVT.rtcm_dump_devname=/dev/pts/1
PVT.rtcm_tcp_port=2101
PVT.rtcm_MT1019_rate_ms=5000
PVT.rtcm_MT1045_rate_ms=5000
PVT.rtcm_MT1046_rate_ms=5000 ; only present in the next branch
PVT.rtcm_MT1097_rate_ms=1000
PVT.rtcm_MT1077_rate_ms=1000
PVT.rinex_version=2

For a Precise Point Positioning solution with the corrections of the Galileo High Accuracy Service, a receiver of Galileo E1 and E6 signals (optionally with GPS L1 C/A, and with any other band of those systems) can be set up as follows. The antenna options are only present in the next branch of the upstream repository, as it is the meaning of Estimate_STEC in this positioning mode:

ini
;######### PVT CONFIG WITH GALILEO HAS CORRECTIONS ############
PVT.implementation=RTKLIB_PVT
PVT.positioning_mode=PPP_Kinematic
PVT.iono_model=Estimate_STEC
PVT.trop_model=Saastamoinen
PVT.antex_file=/path/to/igs20.atx
PVT.antenna_type=NAX3G+C NONE

For a GPS L1 single-point solution augmented with SBAS corrections, use an S1 telemetry channel and configure PVT as follows:

ini
;######### SBAS L1 TELEMETRY DECODER CONFIG ############
TelemetryDecoder_S1.implementation=SBAS_L1_Telemetry_Decoder

;######### PVT CONFIG WITH SBAS CORRECTIONS ############
PVT.implementation=RTKLIB_PVT
PVT.positioning_mode=Single
PVT.satellite_ephemeris=SBAS
PVT.sbas_satellite=0
PVT.iono_model=SBAS
PVT.trop_model=SBAS

The receiver must also define at least one SBAS L1 channel, for example with Channels_S1.count=1. Set PVT.sbas_satellite to a specific GEO PRN when the receiver tracks multiple SBAS signals and a particular correction stream is required.

For an RTK solution with corrections received from an NTRIP caster, configure the receiver with a supported channel set — for instance, GPS L1 C/A + L2C with Channels_1C.count=8 and Channels_2S.count=8, a combined GPS L1+L5 / Galileo E1+E5a receiver with Channels_1C, Channels_L5, Channels_1B, and Channels_5X channels, or a single-frequency GPS+Galileo receiver with only Channels_1C and Channels_1B — and set up PVT as follows:

ini
;######### PVT CONFIG WITH RTK VIA NTRIP ############
PVT.implementation=RTKLIB_PVT
PVT.positioning_mode=Kinematic
PVT.AR_GPS=Fix-and-Hold
PVT.threshold_reject_innovation_phase=5.0
PVT.ntrip_client_enabled=true
PVT.ntrip_caster_address=caster.example.org
PVT.ntrip_caster_port=2101
PVT.ntrip_mountpoint=MOUNTPOINT
PVT.ntrip_username=user
PVT.ntrip_password_env=NTRIP_PASSWORD
PVT.ntrip_tls_enabled=false

In this example, the caster password is read from the NTRIP_PASSWORD environment variable, so it does not need to be written in the configuration file. If the mountpoint is a Virtual Reference Station or a nearest-station service, no additional settings are needed: the client reports the rover position to the caster via NMEA GGA sentences by default (see PVT.ntrip_send_gga). The console will tag position fixes with [RTK FIXED], [RTK FLOAT], or [DGNSS] labels, and will announce solution status transitions, including the LAMBDA ambiguity-resolution ratio when an RTK fix is acquired or lost.

The generation of output files is controlled by the parameter output_enabled. If set to true (which is its default value), RINEX, XML, GPX, KML, GeoJSON, NMEA and binary RTCM files will be generated. You can turn off the generation of such files by setting output_enabled=false, and then select, for instance, rinex_output_enabled=true or kml_output_enabled=true. Files are stored in the path indicated in output_path, which by default is the current folder (that is, the folder from which GNSS-SDR was called). This can be changed for all outputs (for instance, output_path=gnss-products or output_path=/home/user/Documents/gnss-products/day1), or it can be defined per type of output (e.g., rinex_output_path=gnss-products/rinex, gpx_output_path=gnss-products/gpx, geojson_output_path=gnss-products/geojson, etc.).

Example:

ini
PVT.output_enabled=false
PVT.rtcm_output_file_enabled=false
PVT.gpx_output_enabled=true
PVT.geojson_output_enabled=true
PVT.kml_output_enabled=true
PVT.xml_output_enabled=true
PVT.rinex_output_enabled=true
PVT.nmea_output_file_enabled=false
PVT.output_path=gnss-products/others
PVT.gpx_output_path=gnss-products/gpx
PVT.kml_output_path=./
PVT.xml_output_path=./
PVT.rinex_output_path=gnss-products/rinex

This will create in your current directory:

text
.
├── PVT_181028_093651.kml
├── gnss-products
│   ├── gpx
│   │   └── PVT_181028_093651.gpx
│   ├── others
│   │   └── PVT_181028_093651.geojson
│   └── rinex
│       ├── GSDR301j36.18N
│       └── GSDR301j36.18O
└── gps_ephemeris.xml

In order to shut down the generation of output files, you can just include in your configuration file the line:

ini
PVT.output_enabled=false

Please note that this only concerns the generation of mentioned file formats, and it does not affect the generation of dump files activated in the configuration of each processing block. If the RTCM server is activated with flag_rtcm_server=true, it will still work even if the binary RTCM file is deactivated with rtcm_output_file_enabled=false.


References

[^Ashby04]: N. Ashby, The Sagnac Effect in the Global Positioning System, Chapter 1 in Relativity in Rotating Frames: Relativistic Physics in Rotating Reference Frames (Fundamental Theories of Physics), G. Rizzi , M.L. Ruggiero (Eds.), Kluwer Academic Publishers, Dordrecht, The Netherlands, 2004. [^RTKLIBManual]: T. Takasu, RTKLIB ver. 2.4.2 Manual. April 29, 2013. [^McCarthy04]: D. McCarthy, G. Petit (Eds.), IERS Conventions (2003), IERS Technical Note No. 32, International Earth Rotation and Reference Systems Service, Frankfurt (Germany), 2004. [^Kouba01]: Kouba, P. Héroux, Precise Point Positioning Using IGS Orbit and Clock Products, GPS Solutions, Vol. 5, no. 2, 2001, pp. 12-28. [^HASRUA]: European Union, Galileo High Accuracy Service Reference User Algorithm (HAS UA) Technical Note, Issue 1.0, November 2025. [^ANTEX]: M. Rothacher, R. Schmid, ANTEX: The Antenna Exchange Format, Version 1.4, September 15, 2010, and International GNSS Service, ANTEX: The Antenna Exchange Format, Version 2.0, April 2026. [^Teunissen95]: P. J. G. Teunissen, The least‐square ambiguity decorrelation adjustment: a method for fast GPS ambiguity estimation, Journal of Geodesy, vol. 70, no. 1, 1995, pp. 65-82. [^Chang05]: X.‐W. Chang, X. Yang, and T. Zhou, MLAMBDA: A modified LAMBDA method for integer least‐squares estimation, Journal of Geodesy, vol. 79, no. 9, 2005, pp. 552-565. [^HASICD]: European Union, Galileo High Accuracy Service Signal-In-Space Interface Control Document (HAS SIS ICD), Issue 1.0, May 2022. [^IGSSSR]: International GNSS Service, IGS State Space Representation (SSR) Format, Version 1.00, October 5, 2020. [^ISGPS200]: Global Positioning System Directorate, Interface Specification IS-GPS-200N: Navstar GPS Space Segment/Navigation User Interfaces, August 2022. [^Klobuchar87]: J. A. Klobuchar, Ionospheric time-delay algorithms for single-frequency GPS users. IEEE Transactions on Aerospace and Electronic Systems, Vol AES-23, no. 3, May 1987, pp. 325-331. [^Bevis94]: M. Bevis, S. Businger, S. Chiswell, T. A. Herring, R. A. Anthes, C. Rocken, R. H. Ware, GPS Meteorology: Mapping Zenith Delay onto Precipitable Water, American Meteorological Society, vol. 33, March 1994, pp. 379-386. [^MOPS]: RTCA/DO‐229C, Minimum operational performance standards for global positioning system/wide area augmentation system airborne equipment, RTCA Inc., December 13, 2006. [^Niell96]: A. E. Niell, Global mapping functions for the atmosphere delay at radio wavelengths, Journal of Geophysical Research: Solid Earth, Volume 101, Issue B2 10, Feb. 1996, pp. 3227-3246. [^MacMillan95]: D. S. MacMillan, Atmospheric gradients from very long baseline interferometry observation, in Geophysical Research Letters, Volume 22, Issue 9, May 1995, pp. 1041-1044.