Open autonomous driving book adds EKF chapter showing how GNSS fixes heading

4310sy · x · 2026-11-28

The author's open book Autonomous Vehicle Control Beginners Guide adds section 6.2 on the Extended Kalman Filter (EKF), free to read with runnable Python code.

The chapter explains two complementary but flawed localization sources: dead reckoning (smooth but drifts without limit) and GNSS (doesn't drift but has meter-level noise and measures no heading). The EKF maintains a Gaussian belief (mean + covariance) and fuses both by uncertainty-weighted prediction and update steps. Since the vehicle motion model is nonlinear in heading, the EKF linearizes it—allowing a position-only GNSS sensor to also correct heading estimates. A Python simulation demonstrates the effect.

Original post →

More from Research

Research channel →