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
where is the measurement vector (that is, the observables
obtained from the GNSS signals of a set of satellites),
is the state vector to be estimated (at least, the position of the receiver’s
antenna and the time), is the function that relates
states with measurements, and 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:
where is the receiver’s antenna position in an earth-centered, earth-fixed (ECEF) coordinate system (in meters), is the speed of light, and is the receiver clock bias (in seconds).
The measurement vector is defi
As described in the Observables block, for a signal from satellite in the i-th band, the pseudorange measurement can be expressed as:
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:
The geometric range 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 is the Earth rotation angle velocity (in rad/s).
Geometric range and Earth rotation correction [^RTKLIBManual]
Equation is clearly nonlinear due to the presence of the Euclidean norm operator . However, this term can be extended by using Taylor series around an initial parameter vector 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 with respect to 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 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:
which can be solved by a standard iterative weighted least squares method.
Matrix can be written as:
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
For the initial parameter vector for the iterated weighted
LSE, just all 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 , the
RTKLIB_PVT implementation uses:
where:
- is the satellite system error factor. This parameter is set to for GPS and Galileo.
- is the code/carrier‐phase error ratio. This value is set by
default to , and can be configured with the
PVT.code_phase_error_ratio_l1option. - is the carrier‐phase error factor and (in m). They are set by default to
m, and can be configured with the
PVT.carrier_phase_error_factor_aandPVT.carrier_phase_error_factor_boptions, respectively. - is the elevation angle of satellite direction (in rad).
- 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.
- is the standard deviation of ionosphere correction
model error (in m). This parameter is set to m by
default (
PVT.iono_model=OFF) and m when the optionPVT.iono_model=Broadcastis set in the configuration file. - is the standard deviation of troposphere correction
model error (in m). This parameter is set to m by
default (
PVT.trop_model=OFF) and (\sigma_{trop} = 0.3 / \left(\sin(El_r^{(s)}) + 0.1\right)) m when the optionPVT.trop_model=Saastamoinen,PVT.trop_model=Estimate_ZTDorPVT.trop_model=Estimate_ZTD_Gradis set in the configuration file. - is the standard deviation of code bias error (in m). This parameter is set to m.
In addition, two optional terms can extend this error model:
An SNR-dependent term, activated when
PVT.error_factor_snris set to a positive value (in m; ta recommended value is m), which adds to the variance a termwhere is the carrier-to-noise density ratio reported by the tracking loop for satellite , and is a reference value (in dB-Hz) above which no penalty is applied, configurable with
PVT.error_snr_max(it defaults to dB-Hz). It defaults to (disabled), preserving the elevation-only error model.A receiver-reported standard deviation term, activated when
PVT.error_factor_rcv_stdis 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 (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 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 () 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:
the residuals test is defined as:
where is the number of estimated parameters, is the number of measurements, is the chi‐square distribution of degree of freedom , and with a significance level of (that is, ).
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:
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 , 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
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:
where is ZTD (zenith total delay), and 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 ().
The receiver clock offset 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 . Thence, dual-frequency receivers can eliminate their effect through a linear combination of pseudorange and phase-range measurements (where the definitions at Observables apply):
with and (C_j = \frac{-f_j^2}{f_i^2 - f_j^2}), where and are the frequencies (in Hz) of and measurements. Explicitly:
with
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 . The correction terms for the Earth tide[^McCarthy04] and the phase windup
effect[^Kouba01] 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:
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 that relates measurements and states is:
where:
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:
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 defined as in equation (), 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):
- Measurement update (estimation):
The transition matrix models the receiver movement:
- If
PVT.positioning_mode=PPP_Static:
- If
PVT.positioning_mode=PPP_Kinematic:
where is the time between GNSS measurements, in s.
The dynamics model noise covariance matrix is set to:
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 is the coordinates rotation matrix from ECEF to local
coordinates at the receiver antenna position (defined below), and
, and 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 m in the first epoch and then set to in the following time updates. - If the positioning mode is set to
PVT.positioning_mode=PPP_Kinematic, these values are set to m for all time updates.
- If the positioning mode is set to
- (\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 , and are the standard deviations of east, north, and up components of the receiver velocity model noises (in m/s/). In the current implementation, those parameters are set to (\sigma{ve} = \sigma_{vn} = \sigma_{vu} = 0).
- is the standard deviation of the receiver clock offset (in m). This value is set to 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 , and are
initialized to m/
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 m/ can be configured with the
PVT.sigma_tropoption. - is the standard deviation of the ionosphere-free
carrier-phase bias measurements, in m/. This value is
initialized at the first epoch and after a cycle slip to (\sigma_{bias} =
100) m/, and then is set to a default value of m/ 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 and are the geodetic latitude and the longitude of the receiver position.
The measurement model noise covariance matrix is defined as:
where:
in which is the standard deviation of L1 phase‐range measurement error (in m), and is the standard deviation of L1 pseudorange measurement error (in m). These quantities are estimated as:
- , where:
- and are the carrier
phase error factors (configurable via
PVT.carrier_phase_error_factor_aandPVT.carrier_phase_error_factor_b), - is the standard deviation of ionosphere correction
model error (in m). This parameter is set to m by
default (
PVT.iono_model=OFF) and (\sigma_{ion} = 0.5 \cdot I_{r,i}^{(s)}) m when the optionPVT.iono_model=Broadcastis set in the configuration file. - m is the standard deviation of the broadcast clock,
- is the standard deviation of the troposphere
correction model error (in m). This parameter is set to
m when
PVT.trop_model=OFFand m whenPVT.trop_model=Saastamoinen,PVT.trop_model=Estimate_ZTDorPVT.trop_model=Estimate_ZTD_Grad.
- and are the carrier
phase error factors (configurable via
- , where:
- (configurable via
PVT.code_phase_error_ratio_l1), - m (configurable via
PVT.carrier_phase_error_factor_aandPVT.carrier_phase_error_factor_b), - , and defined as above.
- is the standard deviation of code bias error (in m). This parameter is set to m.
- (configurable via
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 and each of its bands , the measurement model is:
with . The states added to the position, the receiver clocks and the troposphere terms are:
- , 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 m/, the value of the Galileo HAS Reference User Algorithm[^HASRUA], which can be lowered down to m/ in quiet ionospheric conditions at mid latitudes. - , 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.
- , the receiver clock of the carrier phases of each GNSS and band, described above.
- , 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 ()-(), 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 is above a certain threshold, that observation is rejected as
an outlier. The default threshold is set to 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 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_filesets 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_filesets 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_typesets 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 inPVT.antex_fileor, if it is set, inPVT.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_mandPVT.antenna_delta_up_mset 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):
| File | Content | Option |
|---|---|---|
igs20.atx | Satellite and receiver antennas, ANTEX 1.4 (IGS). | PVT.antex_file |
igs20_sat.atx2 | Satellite antennas, ANTEX 2.0 (IGS). | PVT.antex_file |
igs_satellite_metadata.snx | Satellite metadata, needed by igs20_sat.atx2 (IGS). | PVT.satellite_metadata_file |
igs20_rcv.atx2 | Receiver antennas, ANTEX 2.0 (IGS). | PVT.receiver_antex_file |
GSAT_2409.atx | Galileo 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:
PVT.positioning_mode=PPP_Static
PVT.antex_file=/path/to/igs20.atx
PVT.antenna_type=NAX3G+C NONE
PVT.antenna_delta_up_m=0.1or, with the ANTEX 2.0 files:
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.1These 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:
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 and the base station for the -th band. The measurement vector stacks double-differenced phase-range and pseudorange measurements:
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 denoting the difference between the reference satellite and satellite . The equations that relate measurements and states are:
with partial derivatives matrix:
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 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_dopplerto a positive value, in m/s; it defaults to (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 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:
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 and their covariance . 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 is obtained by solving an ILS (integer least squares) problem expressed as:
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:
In this Ratio-Test, the ratio-factor , defined as the ratio of the
weighted sum of the squared residuals by the second best solution to the one by the best solution , is used to check the reliability of the solution. The validation threshold
can be set with the PVT.min_ratio_to_fix_ambiguity option,
and it defaults to . 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 m^2; 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 ; 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 ) andPVT.min_hold_sats(it defaults to ).
After the validation, the ″FIXED″ solution of the rover antenna position and velocity and is obtained by solving the following equation:
If the validation fails, the ″FLOAT″ solution and 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 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=1forces the legacy protocol directly. - TLS support: setting
PVT.ntrip_tls_enabled=trueenables 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_usernameandPVT.ntrip_password. Alternatively, the password can be read from an environment variable named inPVT.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_idrestricts the stream to that exact station ID), and drops stale corrections older thanPVT.ntrip_max_correction_age_s(it defaults to 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 byPVT.ntrip_gga_period_ms, 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. SetPVT.ntrip_send_gga=falseif 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=SBASapplies 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=SBASapplies the ionospheric grid delays and their associated quality information broadcast in SBAS message types 18 and 26.PVT.trop_model=SBASapplies the SBAS receiver-specification tropospheric model, commonly known as the MOPS model. It does not depend on a broadcast SBAS message.PVT.sbas_satelliteselects 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 :
Orbit: the radial, along-track and cross-track corrections , and are rotated to the ECEF frame with the satellite position and velocity 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 (the Delta Clock Correction multiplied by its Delta Clock Multiplier) is added to the clock computed from the broadcast polynomial , with the relativistic term computed from the broadcast position and velocity:
Code biases: the code bias of each signal is added to its pseudorange. It replaces the broadcast group delays (, the GPS inter-signal corrections, and the Galileo ), 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 ( m in each axis and 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:
PVT.iono_model=Broadcast
PVT.trop_model=Saastamoinenand a dual-frequency receiver (for instance, Galileo E1 + E6 or GPS L1 + L5):
PVT.iono_model=Iono-Free-LC
PVT.trop_model=SaastamoinenIn 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_statusfield of the monitoring stream is1when at least one satellite in the solution has HAS orbit and clock corrections, and thehas_correctedfield of eachTrackedSatelliteentry tells which satellites and signals got them. - In the
PPP_StaticandPPP_Kinematicpositioning 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 ashas_corrected_satsin 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_sare discarded. In this role, it defaults to 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 byPVT.antex_file.
Example:
;######### 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.atxIonospheric 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:
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 . It is often reported in multiples of the so-called TEC unit, defined as el/m. 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 ) 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-LCforms 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,BroadcastandSBASuse the first band alone, corrected with the broadcast group delay that matches the clock model of the ephemeris in use: for GPS and QZSS (plus the inter-signal correction or for L2C-only or L5-only measurements); or for Galileo, depending on whether the F/NAV or the I/NAV clock is used; and, for BeiDou, for B1I, for B1C (plus when the data component is tracked), and 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 .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 thenextbranch of the upstream repository.
Broadcast
For ionosphere correction for single-frequency GNSS users, GPS navigation data include the following broadcast ionospheric parameters:
By using these ionospheric parameters, the L1 ionospheric delay (in m) can be derived by the following procedure[^ISGPS200] (this model is often called as the Klobuchar model[^Klobuchar87]):
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 and ), 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 meters in the zenith direction and meters for lower elevations ( 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]
where is the total pressure (in hPa), is the absolute temperature (in K) of the air, is the geodetic height above MSL (mean sea level), is the partial pressure (in hPa) of water vapor and is the relative humidity. The tropospheric delay (in m) is expressed by the Saastamoinen model with , and derived from the standard atmosphere:
where is the zenith angle (rad) as (z^{(s)} = \frac{\pi}{2} - El_{r}^{(s)}), where 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:
where is the tropospheric zenith total delay (in meters), is the tropospheric zenith hydro‐static delay (in meters), is the hydro‐static mapping function and is the wet mapping function. The tropospheric zenith hydro‐static delay is given by Saastamoinen model described above with the zenith angle and relative humidity . For the mapping function, the software employs the Niell mapping function[^Niell96]. The zenith total delay 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]:
where is the azimuth angle of satellite direction (rad), and and are the east and north components of the tropospheric gradient, respectively. The zenith total delay and the gradient parameters and 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})
Measurement model: (\begin{equation} \mathbf{z} = \left[ x , y , z , v_{x}, v_{y}, v_{z} \right]^{T} \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})
Prediction: (\begin{equation} \hat{\mathbf{x}}{k|k-1} = \mathbf{F} \hat{\mathbf{x}}{k-1|k-1} \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})
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 ).
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:
| Signal | Data component | Pilot component |
|---|---|---|
| GPS L1 C/A | 1C | |
| GPS L1C | 1S | 1L |
| GPS L2C | 2S | |
| GPS L5 | 5I | 5Q |
| Galileo E1 | 1B | 1C |
| Galileo E5a | 5I | 5Q |
| Galileo E5b | 7I | 7Q |
| Galileo E6 | 6B | 6C |
| GLONASS L1 C/A | 1C | |
| GLONASS L2 C/A | 2C | |
| BeiDou B1I | 2I (1I in RINEX 3.02) | |
| BeiDou B3I | 6I | |
| BeiDou B1C | 1D | 1P |
| BeiDou B2a | 5D | 5P |
| QZSS L1 C/A | 1C | |
| QZSS L1 C/B | 1E (RINEX 4.02 only) | |
| QZSS L5 | 5I | 5Q |
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):
| File | Content |
|---|---|
HAS_Messages_YYMMDD_HHMMSS_has_orb.csv | Orbit corrections, one row per satellite. |
HAS_Messages_YYMMDD_HHMMSS_has_clk.csv | Clock full-set and clock subset corrections, one row per satellite. |
HAS_Messages_YYMMDD_HHMMSS_has_cb.csv | Code biases, one row per satellite and signal. |
HAS_Messages_YYMMDD_HHMMSS_has_cp.csv | Phase 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:
| Column | Description |
|---|---|
ToW | Time of week at which the message was received, in s. |
WN | GPS week number (the Galileo week number plus 1024). |
ToH | Time 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. |
IOD | IOD Set ID of the message header. |
maskID | Mask 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. |
gnssIOD | Reference issue of data of the satellite (IODnav for Galileo, IODE for GPS). Only in the _has_orb.csv and _has_clk.csv files. |
validity | Validity interval of the corrections, in s. |
gnssID | 0 for GPS, 2 for Galileo. |
PRN | PRN 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:
| File | Columns | Description |
|---|---|---|
_has_orb.csv | delta_radial, delta_in_track, delta_cross_track | Orbit corrections, in m, with the sign convention of the HAS message. A correction that is not available is written as nan. |
_has_clk.csv | multiplier, delta_clock_c0, status | Delta 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.csv | signal, code_bias, av_flag | Index 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.csv | signal, phase_bias, av_flag, phase_discontinuity_ind | Index 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:
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,0The 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:
| Name | Type | Description |
|---|---|---|
tow_at_current_symbol_ms | uint32_t | Time of week of the current symbol, in [ms]. |
week | uint32_t | PVT GPS week. |
rx_time | double | PVT GPS time. |
user_clk_offset | double | User clock offset, in [s]. |
pos_x | double | Position X component in ECEF, expressed in [m]. |
pos_y | double | Position Y component in ECEF, expressed in [m]. |
pos_z | double | Position Z component in ECEF, expressed in [m]. |
vel_x | double | Velocity X component in ECEF, expressed in [m/s]. |
vel_y | double | Velocity Y component in ECEF, expressed in [m/s]. |
vel_z | double | Velocity Z component in ECEF, expressed in [m/s]. |
cov_xx | double | Position variance in the X component, , in []. |
cov_yy | double | Position variance in the Y component, , in []. |
cov_zz | double | Position variance in the X component, , in []. |
cov_xy | double | Position XY covariance , in []. |
cov_yz | double | Position YZ covariance , in []. |
cov_zx | double | Position ZX covariance , in []. |
latitude | double | Latitude, in [deg]. Positive: North. |
longitude | double | Longitude, in [deg]. Positive: East. |
height | double | Height, in [m]. |
valid_sats | uint32_t | Number of valid satellites. |
solution_status | uint32_t | RTKLIB solution status. |
solution_type | uint32_t | RTKLIB solution type (0: xyz-ecef, 1: enu-baseline). |
ar_ratio_factor | float | Ambiguity resolution ratio factor for validation. |
ar_ratio_threshold | float | Ambiguity resolution ratio threshold for validation. |
gdop | double | Geometric dilution of precision (GDOP). |
pdop | double | Position (3D) dilution of precision (PDOP). |
hdop | double | Horizontal dilution of precision (HDOP). |
vdop | double | Vertical dilution of precision (VDOP). |
user_clk_drift_ppm | double | User clock drift, in parts per million. |
utc_time | string | PVT UTC time (RFC 3339 datetime string). This metric is available starting from GNSS-SDR v0.0.19. |
vel_e | double | East component of the velocity in the local ENU frame, in m/s. This metric is available starting from GNSS-SDR v0.0.19. |
vel_n | double | North component of the velocity in the local ENU frame, in m/s. This metric is available starting from GNSS-SDR v0.0.19. |
vel_u | double | Up component of the velocity in the local ENU frame, in m/s. This metric is available starting from GNSS-SDR v0.0.19. |
cog | double | Course Over Ground, in degrees. This metric is available starting from GNSS-SDR v0.0.19. |
galhas_status | uint32_t | Galileo 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. |
geohash | string | Encoded geographic location. This metric is available starting from GNSS-SDR v0.0.19. |
tracked_satellites | repeated TrackedSatellite | One 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:
| Name | Type | Description |
|---|---|---|
prn | uint32 | Satellite PRN. |
system | string | Constellation identifier: G (GPS), E (Galileo), R (GLONASS), C (BeiDou), S (SBAS), or J (QZSS). |
signal | string | Two-character GNSS-SDR signal identifier, for example 1C, 1B, or 5X. It names the channel type, not the tracked component. |
observation_code | string | RINEX 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_deg | double | Satellite azimuth, in degrees, in the range (positive: East of North). |
elevation_deg | double | Satellite elevation, in degrees. It can be negative for a satellite tracked below the local horizon. |
combined | bool | true 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). |
used | bool | true 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). |
healthy | bool | true 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_corrected | bool | true 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 Parameter | Description | Required |
|---|---|---|
GNSS-SDR.SUPL_gps_ephemeris_xml | Name of an XML file containing GPS ephemeris data. It defaults to ./gps_ephemeris.xml | Optional |
GNSS-SDR.observation_date | Approximate 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 |
| Parameter | Description | Required |
|---|---|---|
implementation | RTKLIB_PVT | Mandatory |
output_rate_ms | Rate 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_ms | Rate 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_mask | Set the elevation mask angle, in degrees. It defaults to . | 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 , the receiver position is predicted with the estimated velocity; if set to , 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 (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_satellite | Select 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_ms | If 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_l1 | Code/phase error ratio for the L1 band. It defaults to . | Optional |
carrier_phase_error_factor_a | Carrier phase error factor . It defaults to m. | Optional |
carrier_phase_error_factor_b | Carrier phase error factor . It defaults to m. | Optional |
error_factor_snr | SNR-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 m. It defaults to (disabled), preserving the elevation-only error model. This parameter is available since GNSS-SDR v0.0.22. | Optional |
error_snr_max | Reference carrier-to-noise density ratio (dB-Hz) above which no SNR penalty is applied by the error_factor_snr term. It defaults to dB-Hz. This parameter is available since GNSS-SDR v0.0.22. | Optional |
error_factor_rcv_std | Receiver-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 (disabled). This parameter is available since GNSS-SDR v0.0.22. | Optional |
slip_threshold | Set the cycle‐slip threshold (m) of geometry‐free LC carrier‐phase difference between epochs. It defaults to . 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_doppler | Set 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 (test disabled). This parameter is available since GNSS-SDR v0.0.22. | Optional |
threshold_reject_GDOP | Set 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 . | Optional |
threshold_reject_innovation | Set 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 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_phase | Set 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 m in RTK modes. This parameter is available since GNSS-SDR v0.0.22. | Optional |
number_filter_iter | Set 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_bias | Set the process noise standard deviation of carrier‐phase bias , in cycles/. It defaults to cycles/. | Optional |
sigma_trop | Set the process noise standard deviation of zenith tropospheric delay , in m/. It defaults to m/. | Optional |
sigma_acch | Set the process noise standard deviation of the receiver acceleration, horizontal component, in m/s. It defaults to m/s. If PVT.dynamics_model is set to , this parameter is not used. | Optional |
sigma_accv | Set the process noise standard deviation of the receiver acceleration, vertical component, in m/s. It defaults to m/s. If PVT.dynamics_model is set to , this parameter is not used. | Optional |
sigma_iono | Set the process noise standard deviation of vertical ionospheric delay per 10 km baseline, in m/. It defaults to m/. 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 m/. Only present in the next branch. | Optional |
bias_0 | Set the initial-state standard deviation of the carrier‐phase bias (ambiguity), in m. It defaults to m. | Optional |
iono_0 | Set the initial-state standard deviation of vertical ionospheric delay per 10 km baseline, in m. It defaults to m. | Optional |
trop_0 | Set the initial-state standard deviation of zenith tropospheric delay, in m. It defaults to 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_ambiguity | Set 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 . | Optional |
ar_ratio_min | Lower 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 . This parameter is available since GNSS-SDR v0.0.22. | Optional |
ar_ratio_max | Upper bound for the satellite-count-dependent ambiguity-resolution ratio threshold. It defaults to . This parameter is available since GNSS-SDR v0.0.22. | Optional |
ar_max_position_variance | Maximum float-position variance (m²) to attempt integer ambiguity resolution, avoiding false fixes while the filter is still converging. Set it to to disable this gate. It defaults to 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_sats | Minimum number of satellites required to fix integer ambiguities. It defaults to . This parameter is available since GNSS-SDR v0.0.22. | Optional |
min_hold_sats | Minimum number of satellites required to hold integer ambiguities in the Fix-and-Hold strategy. It defaults to . This parameter is available since GNSS-SDR v0.0.22. | Optional |
min_drop_sats | Minimum number of satellites in view to enable single-satellite exclusion cycling when no fix is achieved. Set it to to disable this mechanism. It defaults to . This parameter is available since GNSS-SDR v0.0.22. | Optional |
var_holdamb | Variance (cycles²) of the pseudo-measurements that constrain the ambiguities in the Fix-and-Hold strategy. It defaults to cycles². This parameter is available since GNSS-SDR v0.0.22. | Optional |
min_lock_to_fix_ambiguity | Set 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 . | Optional |
min_elevation_to_fix_ambiguity | Set 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 . | Optional |
outage_reset_ambiguity | Set 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 . | 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_address | Host 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_port | TCP port of the NTRIP caster. It defaults to . This parameter is available since GNSS-SDR v0.0.22. | Optional |
ntrip_mountpoint | Mountpoint providing the RTCM 3 correction stream. This parameter is available since GNSS-SDR v0.0.22. | Mandatory if ntrip_client_enabled=true |
ntrip_username | User name for HTTP Basic authentication against the caster. This parameter is available since GNSS-SDR v0.0.22. | Optional |
ntrip_password | Password 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_env | Name 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_id | If set to a positive value, the correction stream is filtered to that exact station ID; if set to , any station is accepted, but observations and base position remain bound to a single ID. It defaults to . This parameter is available since GNSS-SDR v0.0.22. | Optional |
ntrip_version | [1, 2]: NTRIP protocol version. If set to , the client prefers NTRIP v2 and automatically retries once over NTRIP v1 when the caster does not support it; if set to , the legacy protocol is used directly. It defaults to . 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_ms | Inactivity timeout of the NTRIP connection, in ms. Valid values range from ms to 24 hours. It defaults to ms. This parameter is available since GNSS-SDR v0.0.22. | Optional |
ntrip_reconnect_interval_ms | Delay between reconnection attempts, in ms. Set it to to disable operational reconnects (the single v2-to-v1 compatibility retry is always performed). It defaults to ms. This parameter is available since GNSS-SDR v0.0.22. | Optional |
ntrip_max_correction_age_s | Maximum age of the corrections, in s. Older corrections are discarded. It defaults to s for base-station corrections, and to 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_ms | Period between NMEA GGA reports, in ms. Valid values range from ms to 24 hours. It defaults to 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 (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 (rejection). This default is only present in the next branch of the upstream repository. In GNSS-SDR v0.0.22, it defaults to (no rejection). | Optional |
phwindup | [0, 1]: Set whether the phase windup correction for PPP modes is applied or not. It defaults to (no phase windup correction). | Optional |
earth_tide | [0, 1]: Set whether earth tides correction is applied or not. If set to , the solid earth tides correction is applied to the PPP solution, following the description in IERS Technical Note No. 32[^McCarthy04], Chapter 7. It defaults to (no Earth tide correction). | Optional |
antex_file | ANTEX 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_file | IGS 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_file | ANTEX 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_type | Name 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_m | East 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 m. Only present in the next branch. | Optional |
antenna_delta_north_m | North component of the position of the antenna reference point with respect to the marker, in m. It defaults to m. Only present in the next branch. | Optional |
antenna_delta_up_m | Up component of the position of the antenna reference point with respect to the marker, in m. It defaults to 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_name | Sets 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_ms | Rate 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_filename | Name 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_devname | If 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_port | If flag_rtcm_server is set to true, TCP port from which the RTCM messages will be served. It defaults to 2101. | Optional |
rtcm_station_id | Station ID reported in the generated RTCM messages. It defaults to 1234. | Optional |
rtcm_MT1045_rate_ms | Rate 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_ms | Rate 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_ms | Rate 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_ms | Rate 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_ms | Default rate at which RTCM Multiple Signal Messages will be generated. It defaults to 1000 ms. | Optional |
rtcm_MT1077_rate_ms | Rate 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_ms | Rate 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_ms | Rate 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_devname | If flag_rtcm_tty_port is set to true, descriptor of the serial port device. It defaults to /dev/pts/1. | Optional |
output_path | Base 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_path | Base 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_path | Base 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_path | Base 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_path | Base 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_path | Base 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_path | Base 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_path | Base 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_path | Base 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_ms | Output rate of the KML annotations, in ms. It defaults to the value set by output_rate. | Optional |
gpx_rate_ms | Output rate of the GPX annotations, in ms. It defaults to the value set by output_rate. | Optional |
geojson_rate_ms | Output rate of the GeoJSON annotations, in ms. It defaults to the value set by output_rate. | Optional |
nmea_rate_ms | Output 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_filename | If 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_addresses | Destination 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_port | Destination 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_addresses | Destination 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_port | Destination 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_m | Standard 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_ms | Standard 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_m | Standard 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_ms | Standard 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 health flag or the most significant bit of the word of its navigation message flags it as unhealthy (unless use_unhealthy_sats=true). If set to false, only the 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_level | Configure 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:
;######### 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=2For 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:
;######### 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 NONEFor a GPS L1 single-point solution augmented with SBAS corrections, use an
S1 telemetry channel and configure PVT as follows:
;######### 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=SBASThe 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:
;######### 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=falseIn 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:
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/rinexThis will create in your current directory:
.
├── PVT_181028_093651.kml
├── gnss-products
│ ├── gpx
│ │ └── PVT_181028_093651.gpx
│ ├── others
│ │ └── PVT_181028_093651.geojson
│ └── rinex
│ ├── GSDR301j36.18N
│ └── GSDR301j36.18O
└── gps_ephemeris.xmlIn order to shut down the generation of output files, you can just include in your configuration file the line:
PVT.output_enabled=falsePlease 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.