Post · 5 min read· pp. 161–164

Code Based Positioning (SPS)

FundamentalsFundamentals
TitleCode Based Positioning (SPS)
Author(s)J. Sanz Subirana, J.M. Juan Zornoza and M. Hernández-Pajares, Technical University of Catalonia, Spain.
LevelAdvanced
Year of Publication2011

The target is to determine the receiver coordinates r=(x,y,z){\mathbf r}=(x,y,z) and clock offset δt\delta t from pseudorange measurements RjR^j of at least 4 satellites in view. The positioning principle is based on solving a geometric problem from the measured ranges to the satellites, with known coordinates. The satellite coordinates can be computed from the broadcast message, which also provides all necessary information for the measurements modelling for the Standard Positioning Service (SPS).

From the code pseudorange measurements RjR^j for, at least, four satellites (see GNSS Measurements Modelling and Instrumental Delay),

: :

Rj=ρj+c(δt−δtj)+Tj+α^ Ij+TGDj+Mj+εj\mbox(1)R^j=\rho^j+c(\delta t-\delta t^j)+T^j+\hat{\alpha}\, I^j+TGD^j+\mathcal{M}^j+{\boldsymbol \varepsilon}^j \qquad \mbox{(1)}

The following measurement equations system can be written, neglecting the multipath and receiver noise terms:

: :

Rj−Dj≃(xj−x)2+(yj−y)2+(zj−z)2+c δtj=1,2,...,n    (n≥4)\mbox(2)\begin{array}{r} R^j-D^j\simeq \sqrt{(x^j-x)^2+(y^j-y)^2+(z^j-z)^2}+c\,\delta t\\[0.3cm] j=1,2,...,n~~~~ (n \geq 4)\\ \end{array} \qquad \mbox{(2)}

where the left side equations contain the measurements RjR^j and all modeled terms (Dj=−c δtj+Tj+α^ Ij+TGDj)\left ( D^j=-c\,\delta t^j+T^j+\hat{\alpha}\,I^j+TGD^j \right ) (see Clock Modelling, Tropospheric Delay, Klobuchar Ionospheric Model, and Instrumental Delay).

The right side contains the four unknown parameters: The receiver coordinates (x,y,z)(x,y,z) and the receiver clock offset δt\delta t.

The previous equation (2) defines a non linear system, which a usual resolution technique consists of linearising the geometric range ρ\rho in the neighbourhood of a point (x0,y0,z0)(x_0,y_0,z_0) corresponding to an approximate receiver position.

Then, linearising the satellite-receiver geometric range

: :

ρj(x,y,z)=(xj−x)2+(yj−y)2+(zj−z)2\mbox(3)\rho^j(x,y,z)=\sqrt{(x^j-x)^2+(y^j-y)^2+(z^j-z)^2} \qquad \mbox{(3)}

at the approximative solution r0=(x0,y0,z0){\mathbf r}_0=(x_0,y_0,z_0), one obtains:

: :

ρj=ρ0j+x0−xjρ0jdx+y0−yjρ0jdy+z0−zjρ0jdzwithdx=x−x0;dy=y−y0;dz=z−z0\mbox(4)\rho^j=\rho_0^j+\frac{x_0-x^j}{\rho_0^j} dx +\frac{y_0-y^j}{\rho_0^j} dy+\frac{z_0-z^j}{\rho_0^j}dz \qquad with \qquad dx=x-x_0; dy=y-y_0;dz=z-z_0 \qquad \mbox{(4)}

Substituting (4) into (2) we can rewrite the measurement equations as a linear system (where RjR^j can be whatever, smoothed or unsmoothed code):

: :

Rj−ρ0j−Dj=x0−xjρ0jdx+y0−yjρ0jdy+z0−zjρ0jdz+c δtj=1,2,...,4    (n≥4)\mbox(5)\begin{array}{r} R^j-\rho_0^j-D^j=\frac{x_0-x^j}{\rho_0^j}dx +\frac{y_0-y^j} {\rho_0^j} dy+\frac{z_0-z^j}{\rho_0^j} dz+c\,\delta t\\ \\ j=1,2,...,4~~~~(n \geq 4) \end{array} \qquad \mbox{(5)}

The previous navigation equation system [footnotes 1] is written in matrix notation as:

: :

[R1−ρ01−D1⋮Rn−ρ0n−Dn]=(x0−x1ρ01y0−y1ρ01z0−z1ρ011⋮⋮⋮x0−xnρ0ny0−ynρ0nz0−znρ0n1)[dxdydzc δt]\mbox(6)\left[ \begin{array}{l} R^1-\rho_0^1-D^1\\ \vdots\\ R^n-\rho_0^n-D^n \end{array} \right] = \left( \begin{array}{cccc} \frac{x_0-x^1}{\rho_0^1}& \frac{y_0-y^1}{\rho_0^1}& \frac{z_0-z^1}{\rho_0^1} & 1\\ \vdots&\vdots&\vdots\\ \frac{x_0-x^n}{\rho_0^n}& \frac{y_0-y^n}{\rho_0^n}& \frac{z_0-z^n}{\rho_0^n} & 1\\ \end{array} \right) \left[ \begin{array}{l} dx\\ dy\\ dz\\ c\,\delta t \end{array} \right] \qquad \mbox{(6)}

In general, an over-dimensioned system is obtained (for n>4n \gt 4), which can be solved using the Least Squares adjustment.

After solving the equations system (6), the improved estimate of the receiver coordinates is:

: :

[xyz]=[x0y0z0]+[dxdydz]\mbox(7)\begin{array}{l} \left[ \begin{array}{l} x\\ y\\ z\\ \end{array} \right] =\left[ \begin{array}{l} x_0\\ y_0\\ z_0\\ \end{array} \right] + \left[ \begin{array}{l} dx\\ dy\\ dz\\ \end{array} \right] \end{array} \qquad \mbox{(7)}

The equations (2) can be linearised again about these new estimates (7) of the receiver position, and the solution can be iterated until the change between two consecutive iterations is under a given threshold. Typically, the iterations converge quickly, in few iterations, even if starting with (x0,y0,z0)=(0,0,0)(x_0,y_0,z_0)=(0,0,0), i.e., the earth's centre.

The equations (6) will be named Navigation Equation System and can be written in compact form as:

:

Y=G X\mbox(8){\mathbf Y}={\mathbf G}\,{\mathbf X} \qquad \mbox{(8)}

where the vectors and matrix involved can be defined as:

: : - Prefit-residuals: Y is a (n×1n \times 1) vector containing the residuals between the measured and predicted pseudoranges, "before fitting" the parameters (dx,dy,dz,δt)(dx,dy,dz, \delta t) to the linear model.

: : - Geometry matrix: G is a (n×4n \times 4) matrix containing the receiver-satellite geometry [footnotes 2]. The first three elements of each row (j = 1,...,n) are the components of the unitary line-of-sight-vector ρ=−(x0−xj,y0−yj,z0−zj)∣∣(x0−xj,y0−yj,z0−zj)∣∣{\boldsymbol \rho}= -\frac{(x_0-x^j,y_0-y^j,z_0-z^j)}{|| (x_0-x^j,y_0-y^j,z_0-z^j)||}.

: : - Unknown parameters: X is a (4×14 \times 1) vector containing the deviation (dx,dy,dz)(dx,dy,dz) between the approximated and the true coordinates and the receiver clock offset δt\delta t.

: :

code
    ****Figure 1:*** GNSS positioning geometric concept.*

For more information, please go to the article

: - Parameters adjustment

Notes

  1. ^ Strictly speaking, this system corresponds to the case where satellite coordinates at emission time have been calculated using pseudorange algorithm described in Satellite Coordinates Computation. In case of using the purely geometric algorithm of Satellite Coordinates, the elements of the associated matrix (design matrix or Jacobian) varies slightly.
  2. ^ The matrix G{\mathbf G} can be computed in the ENU coordinates instead of XYZ as in (6). In this local system the rows are [cos⁡elisin⁡azi,cos⁡elicos⁡azi,sin⁡eli,1][\cos el^i \sin az^i, \cos el^i \cos az^i, \sin el^i, 1], where eliel^i and aziaz^i are the elevation and azimuth angle of the satellite ii observed from the receiver position (please refer to Transformations between ECEF and ENU coordinates for further details)

References