Block 7 Flashcards#
Click a question to reveal the answer.
1. Distinguish loose-coupling and tight-coupling GPS/filter integration.
Loose coupling: the GPS NLLS solver runs first and outputs a solved position, which feeds the filter as a linear position measurement. Standard linear KF applies. Tight coupling: raw pseudoranges go straight into the filter, which estimates position, velocity, and clock bias jointly. Tight coupling requires an Extended Kalman Filter because the pseudorange equation is nonlinear in user position.
2. Why is tight coupling preferred in operational navigation?
Three reasons. (1) Graceful degradation: an EKF can update on whatever satellites it sees; a loose-coupling solver needs at least four. (2) Clock bias becomes part of the navigation state, so the filter learns the clock dynamics over time. (3) Honest error model: the filter uses the real pseudorange uncertainty rather than the post-solve smoothed position uncertainty.
3. Write the loose-coupling measurement model and observation matrix for the 4-state filter from Block 5.
\(\mathbf{z}_k = \hat{\mathbf{p}}_k + \mathbf{v}_k\) with \(\mathbf{H} = \begin{bmatrix} 1 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 \end{bmatrix}\). Same \(\mathbf{H}\) as the position-only sensor in Block 5. Since \((\mathrm{HDOP}\times\sigma_\rho)^2\) is the total horizontal variance, each of the two axes gets half of it: \(\mathbf{R} \approx \tfrac{1}{2}(\mathrm{HDOP}\times\sigma_\rho)^2\,\mathbf{I}_2\). More exactly, \(\mathbf{R}\) is the position block of the GPS solver's covariance \(\sigma_\rho^2(\mathbf{H}^\top\mathbf{H})^{-1}\), built from the solver's stacked pseudorange geometry.
4. Why can't the standard linear Kalman filter ingest pseudoranges directly?
The pseudorange equation contains \(\lVert\mathbf{p} - \mathbf{s}^{(i)}\rVert\), a Euclidean norm. There is no constant matrix \(\mathbf{H}\) that exactly represents a range measurement, so the standard KF assumption \(\mathbf{z} = \mathbf{H}\mathbf{x} + \mathbf{v}\) does not hold. The fix is to linearize \(h_i(\mathbf{x})\) around the current best estimate at every step.
5. Write the EKF linearization of \(h(\mathbf{x})\) around \(\hat{\mathbf{x}}^-\).
First-order Taylor expansion: \(h(\mathbf{x}) \approx h(\hat{\mathbf{x}}^-) + \mathbf{H}(\mathbf{x} - \hat{\mathbf{x}}^-)\) where \(\mathbf{H} = \partial h / \partial \mathbf{x}\) evaluated at \(\hat{\mathbf{x}}^-\). The Jacobian is recomputed every cycle as \(\hat{\mathbf{x}}^-\) changes; that re-linearization is the EKF's defining feature.
6. In the EKF, what does the innovation use: the linearized model or the nonlinear function?
The innovation uses the nonlinear function: \(\boldsymbol{\nu}_k = \mathbf{z}_k - h(\hat{\mathbf{x}}_k^-)\). The gain and covariance updates use the linearized \(\mathbf{H}\). The Taylor model evaluated at its own expansion point returns \(h(\hat{\mathbf{x}}^-)\) exactly, so the two agree there. The real mistake would be predicting the measurement as \(\mathbf{H}\hat{\mathbf{x}}^-\), the linear-KF habit, because \(\mathbf{H}\hat{\mathbf{x}}^- \ne h(\hat{\mathbf{x}}^-)\). Example: with \(\hat{\mathbf{x}}^- = [0, 0, 10, -5, 20]^\top\) m and a satellite at \([3000, 4000]^\top\) m, \(\mathbf{H} = [-0.6, -0.8, 0, 0, 1]\) gives \(\mathbf{H}\hat{\mathbf{x}}^- = 20\) m, while \(h(\hat{\mathbf{x}}^-) = 5000 + 20 = 5020\) m.
7. Write the tight-coupling state vector for a 2D navigation filter using GPS pseudoranges.
\(\mathbf{x} = [p_x, p_y, v_x, v_y, b]^\top\). Five states: 2D position, 2D velocity, plus the receiver clock bias \(b\) in meters of range-equivalent timing error. The full 3D version adds \(p_z\) and \(v_z\) for a 7-state filter.
8. Why is the receiver clock bias added as a state in a tight-coupling EKF?
Every pseudorange contains the same clock-bias term \(b\), so the bias is a shared unknown that has to be estimated alongside position. Modeling it as a state (typically a random walk or slow Gauss-Markov) lets the EKF estimate the bias automatically and gracefully handle clock drift between updates.
9. Write the pseudorange Jacobian \(\mathbf{H}_i\) for the 5-state 2D filter.
\(\mathbf{H}_i = [\hat{e}_x,\ \hat{e}_y,\ 0,\ 0,\ 1]\), a \(1 \times 5\) row vector. \(\hat{e}_x = (\hat{p}_x - s_x^{(i)})/\rho_i\) and \(\hat{e}_y = (\hat{p}_y - s_y^{(i)})/\rho_i\) are the components of the unit vector from satellite \(i\) to the receiver (the negative of the receiver-to-satellite line of sight). Velocity entries are zero; the clock-bias entry is exactly 1.
10. What does each entry of the pseudorange Jacobian mean, physically?
The first two entries (\(\hat{e}_x, \hat{e}_y\)) are the unit vector from the satellite to the receiver: how a small move in user position changes the predicted pseudorange. Velocity entries are zero because pseudoranges depend instantaneously on position, not velocity (range-rate / Doppler measurements would have non-zero velocity entries). The clock-bias entry is 1 because \(b\) adds linearly to every pseudorange.
11. State the EKF predict step.
Identical to the linear KF: \(\hat{\mathbf{x}}^- = \mathbf{F}\,\hat{\mathbf{x}}^+\) and \(\mathbf{P}^- = \mathbf{F}\,\mathbf{P}^+\,\mathbf{F}^\top + \mathbf{Q}\). The state-transition \(\mathbf{F}\) can also be a Jacobian if the dynamics are nonlinear, but for the constant-velocity + random-walk clock model used in this block, \(\mathbf{F}\) is constant.
12. Write the per-satellite EKF measurement update.
For each satellite \(i\): nonlinear innovation \(\nu_i = \tilde{\rho}_i - h_i(\hat{\mathbf{x}}^-)\); gain \(\mathbf{K}_i = \mathbf{P}^-\mathbf{H}_i^\top(\mathbf{H}_i\mathbf{P}^-\mathbf{H}_i^\top + \sigma_\rho^2)^{-1}\); state update \(\hat{\mathbf{x}}^+ = \hat{\mathbf{x}}^- + \mathbf{K}_i\,\nu_i\); covariance update \(\mathbf{P}^+ = \mathbf{P}^- - \mathbf{K}_i\,\mathbf{H}_i\,\mathbf{P}^-\). The posterior of one satellite becomes the prior for the next.
13. What is the innovation variance \(S\) for a single pseudorange update?
\(S = \mathbf{H}_i\,\mathbf{P}^-\,\mathbf{H}_i^\top + \sigma_\rho^2\), the variance the filter expects its innovation to have. This scalar plays two roles: it is the denominator of the gain, \(\mathbf{K}_i = \mathbf{P}^-\mathbf{H}_i^\top/S\), and it is the yardstick for the innovation in fault detection (Block 8), where the test statistic is the Mahalanobis distance \(D^2 = \nu_i^2/S\).
14. Quick numeric: \(\hat{\mathbf{x}}^- = [0, 0, 10, -5, 20]^\top\), \(\mathbf{s} = [3000, 4000]^\top\). Compute \(\rho\), the predicted pseudorange, and the satellite-to-receiver unit vector \(\hat{e}\).
\(\rho = \sqrt{3000^2 + 4000^2} = 5000\) m. Predicted pseudorange \(h(\hat{\mathbf{x}}^-) = \rho + b = 5000 + 20 = 5020\) m. Unit vector, satellite to receiver: \(\hat{e}_x = -3000/5000 = -0.6\), \(\hat{e}_y = -4000/5000 = -0.8\). So \(\mathbf{H} = [-0.6, -0.8, 0, 0, 1]\).
15. A 5-state EKF has \(\hat{\mathbf{x}}^- = [0, 0, 10, -5, 20]^\top\) m, \(\mathbf{P}^- = 100\,\mathbf{I}_5\), a satellite at \(\mathbf{s} = [3000, 4000]^\top\) m, a measured pseudorange \(\tilde{\rho} = 5035\) m, and \(\sigma_\rho^2 = 100\) m². Which states change after one update, and by how much?
Geometric range \(\rho = 5000\) m, predicted \(h(\hat{\mathbf{x}}^-) = 5020\) m, so the innovation is \(\nu = z - h(\hat{\mathbf{x}}^-) = 5035 - 5020 = +15\) m. \(\mathbf{H} = [-0.6, -0.8, 0, 0, 1]\), \(S = 200 + 100 = 300\) m², gain \(\mathbf{K} = (100/300)[-0.6, -0.8, 0, 0, 1]^\top = [-0.200, -0.267, 0, 0, 0.333]^\top\). State update \(\hat{\mathbf{x}}^+ = [-3, -4, 10, -5, 25]^\top\): position moves 5 m along \(\hat{\mathbf{e}}\), directly away from the satellite (the negative of the line of sight), because the measured range was longer than predicted; the clock bias rises 5 m because a larger \(b\) explains the same long pseudorange; velocity does not change because the Jacobian has zero velocity entries and this \(\mathbf{P}^-\) has no position-velocity cross-covariance.
16. Why does an EKF process satellites one at a time rather than stacking them into a single matrix update?
Three practical reasons. (1) Each satellite can be on a different cadence (some at 1 Hz, others at 5 Hz), and sequential processing handles that naturally. (2) The matrix to invert at each update is scalar (\(S\)), so the whole update is cheap. (3) The Jacobian for satellite \(i+1\) is re-evaluated at the posterior from satellite \(i\), which is in fact a tighter linearization than evaluating all Jacobians at the same prior. For a linear model with uncorrelated measurement noise (diagonal \(\mathbf{R}\)), sequential and batch updates give exactly the same posterior. With EKF relinearization between satellites (point 3), the two differ slightly. The sequential form is operationally cleaner.
17. Derive the pseudorange Jacobian \(\partial h_i/\partial\mathbf{x}\) term by term for \(\mathbf{x} = [p_x, p_y, v_x, v_y, b]^\top\). What goes in the denominator?
With \(h_i = \rho_i + b\) and \(\rho_i = \sqrt{(p_x - s_x^{(i)})^2 + (p_y - s_y^{(i)})^2}\): \(\partial h_i/\partial p_x = (p_x - s_x^{(i)})/\rho_i\), \(\partial h_i/\partial p_y = (p_y - s_y^{(i)})/\rho_i\), \(\partial h_i/\partial v_x = \partial h_i/\partial v_y = 0\), \(\partial h_i/\partial b = 1\). The denominator is the geometric range \(\rho_i\), never \(\rho_i + b\): the bias is a separate +1 in its own column.
18. Which way does the spatial part of the pseudorange Jacobian point, and how does it relate to the line of sight?
\(\hat{\mathbf{e}}_i = (\hat{\mathbf{p}}^- - \mathbf{s}^{(i)})/\rho_i\) points from the satellite to the receiver. The receiver-to-satellite line of sight is its negative, \(\hat{\mathbf{u}}_i = -\hat{\mathbf{e}}_i\). Physical check: \(\Delta h_i \approx \hat{\mathbf{e}}_i^\top\Delta\mathbf{p}\), so stepping 1 m directly away from the satellite lengthens the predicted range by 1 m, and stepping 1 m toward it shortens the range by 1 m.
19. Tight coupling adds how many states to a filter, and which? Give the demo, 3D, and operational counts.
One state, and the +1 is always the receiver clock bias \(b\). Demo (2D): 4 → 5. 3D position and velocity: 6 → 7. Operational INS/GPS: the 15-state filter of Block 5 (position, velocity, attitude, accelerometer and gyro biases) → 16. The 5-state demo is a teaching model; the operational filter is the 16-state one, and its pseudorange row has the same pattern: unit vector under position, 0 elsewhere, 1 under \(b\).
20. Each pseudorange row of \(\mathbf{H}\) holds a unit vector. So what? Why do we need several well-spread satellites, and at least how many in 3D?
Linearized, \(\Delta h_i \approx \hat{\mathbf{e}}_i^\top\Delta\mathbf{p} + \Delta b\): a pseudorange informs position only along its own line of sight; error perpendicular to it is invisible to that satellite. Satellites in diverse directions are needed so the stacked rows span every direction; DOP measures how well they do, \(\mathrm{GDOP} = \sqrt{\operatorname{tr}(\mathbf{H}^\top\mathbf{H})^{-1}}\). In 3D there are 4 unknowns (3 position + 1 clock), so a snapshot fix needs at least 4 satellites. Every row carries the same +1 in the clock column, so every pseudorange is sensitive to \(b\). But \(b\) separates from position only when the stacked \(\mathbf{H}\) has full column rank: at least 3 satellites in 2D or 4 in 3D, and in 3D not all on a common cone around one axis. Two satellites in 2D, even with distinct lines of sight, leave one position-clock combination unobserved, so \(\sigma_b\) keeps growing.