Dead Reckoning and the Extended Kalman Filter
Open the AUV Survey Navigation app
Advanced Control Exercise 6 of 30 in Estimation · All exercises · Time: 15 minutes
Under water there is no GPS. An autonomous vehicle integrates its measured velocity and a compass heading, and a compass that reads one degree high bends the whole survey. This exercise flies the same survey three ways: dead reckoning, surfacing for GPS, and an extended Kalman filter that fuses acoustic position fixes from the ship and estimates the compass bias itself.
Learning Outcomes
- Explain why integrating a biased heading makes the position error grow with distance from the last fix.
- State the predict and update steps of the extended Kalman filter and the role of the innovation gate.
- Compare dead reckoning, periodic resets and a filter that estimates the bias, by navigation error and survey coverage.
Book Chapter
Delays, Slow Measurements, and State Estimation (Volume 5), Chapter 13, Navigation Drift as Unimaged Seabed in an AUV Survey Simulator. Read the chapter, open the PDF, or watch the lecture slides.
Theory in Brief
The filter's state is position, compass bias and water current, `x = (n, e, b, V_{cn}, V_{ce})`. With the measured forward and sideways velocities `(f, s)` and the heading `\hat\psi = \psi_{compass} - \hat b`, the prediction is
$$\begin{gathered} \dot n = f\cos\hat\psi - s\sin\hat\psi, \\ \dot e = f\sin\hat\psi + s\cos\hat\psi, \\ P^- = F P F^T + Q \end{gathered}$$
with `F` the Jacobian of the prediction and `Q` the process noise covariance. A constant bias `b` rotates the estimated path about the last fix, so after a straight distance `d` from it the error is `2\sin(b/2)\,d`. An acoustic fix `z` of position updates the state:
$$\begin{gathered} \nu = z - H\hat x^-, \\ S = H P^- H^T + R, \\ K = P^- H^T S^{-1}, \\ \hat x = \hat x^- + K\nu, \\ P = (I - KH)P^- \end{gathered}$$
The bias is never measured, but it is observable: fixes taken as the vehicle turns reveal the rotation, and the correlation in `P` between position and bias carries each fix into `\hat b`. Each fix describes an earlier instant, so the filter rewinds to that instant, applies it there and predicts forward again. A fix is refused when its normalized innovation exceeds the 99 % point of a `\chi^2` distribution with 2 degrees of freedom:
$$d^2 = \nu^T S^{-1} \nu > 9.21$$
Model: Physics-based. Kinematics of the vehicle on its measured velocity and heading, with the compass bias and current as unknown states.
Decision: The position estimate that the guidance follows, and so where the survey lines are flown.
Learning: The filter learns the compass bias online from fixes; nothing is trained offline.
Exercise
Read 2 min · Predict 1 min · Run 7 min · Explain 3 min · Check your AI 2 min.
Predict. The compass reads 1° high. After 1500 m flown on dead reckoning, how far off is the estimate: 1.7 % of 1500 m, or less? Will two GPS surfacings fix the survey's gaps? What will the Kalman filter do with a fix that is wildly wrong?
Run the AUV Survey Navigation app. Use the fastest speed, 60×, and press Run again to pause at the times in each step.
- Open 4 · Dead reckoning with a compass bias. Set the speed to 60× and press Run; it stops when the vehicle surfaces. Read the Navigation error, Seabed imaged and Holidays tiles.
- Open 6 · GPS surfacing every 15 minutes and run it to the end at 60×. Read the same tiles and the Mission time.
- Open 7 · USBL aiding and run it to the end at 60×. Read the same tiles and Fixes. The compass bias estimate is in the exported CSV.
Explain.
- Why does the dead-reckoning error after a long survey line depend on the distance from the last fix rather than the distance flown?
- The filter uses fixes that arrive late and occasionally wrong. Which two features of the filter make that safe?
Generative AI Learning
Check the answer against your run: A good answer says yes, because fixes taken as the vehicle moves and turns make the bias observable, and the position–bias covariance carries each fix into the bias estimate. Your step 3 tiles test it against step 1. The assistant is your tutor and reviewer; you answer for every claim you turn in.
What to Turn In
A three-row table (dead reckoning, GPS, USBL) with navigation error, seabed imaged, holidays and mission time, your written prediction, and three sentences that answer the two questions.

On dead reckoning the north block ends with Navigation error reading 6.2 m RMS · 8.8 max and Holidays 2 · widest 7.0 m. The error is not 1.7 % of the distance flown. A constant bias rotates the whole estimated pattern about the launch point, so the error at any moment is about `2\sin(b/2)` times the distance from that point, and it shrinks again when the vehicle flies back toward it. The lines stay parallel, but the block's edge moves and leaves gaps.
With GPS surfacing the whole survey images 99.6 % of the seabed, Holidays reads 3 · widest 5.0 m and Navigation error 5.4 m RMS · 8.7 max. Each fix resets the position but not the bias, so the pattern starts rotating again about each surfacing point. The surfacings also cost time: Mission reads complete at 3075 s.
The filter with acoustic fixes images 100.0 %, Holidays reads none and Navigation error 0.6 m RMS · 3.7 max, with Mission complete at 2575 s. By the end of the survey it estimates the compass bias as 0.98° against the true 1° (from the scripted replay; the exported CSV carries it). Fixes reads 133 USBL · 1 rejected · 0 surfacings: the wild fix failed the `\chi^2` gate. Applying each fix at the instant it describes, and refusing those that fail the gate, are what make late, noisy fixes safe.
Measured with the app build of December 3, 2026 by a scripted replay of the steps above. Numbers that no tile shows come from the replay's record; your readings from the trends will be close. A later app release may move the last digit.
Estimation and Control writes a Kalman filter in Python. Simulate a vehicle flying a square at 1.5 m/s with a 1° compass bias, add position fixes every 15 s with 2 m noise, and estimate `(n, e, b)` with an EKF. Then fly a straight line instead of a square and watch `P_{bb}`: the bias stops being observable when the vehicle never turns.
Related
- Check yourself: three-question quiz
- Course pages: Estimation and Control, Estimation Introduction, Estimator Tuning
- Exercises: previous: 5 · Principal Components on Plant Data; next: 7 · Moving Horizon Estimation on a Digital Twin
References
- Hedengren, J. D. (ed.), Delays, Slow Measurements, and State Estimation, Volume 5 of Interactive Control Engineering, Chapter 13, "Navigation Drift as Unimaged Seabed in an AUV Survey Simulator", pp. 319–343, Advanced Process Solutions, 2026. PDF (CC BY 4.0).
- Kinsey, J. C., Eustice, R. M., Whitcomb, L. L., A survey of underwater vehicle navigation: recent advances and new challenges, IFAC Conference on Manoeuvring and Control of Marine Craft, 2006.
