GPS + IMU sensor fusion with an EKF

Simulated drone flying a figure-eight. Compare raw GPS, IMU-only dead reckoning, and the fused EKF estimate.

Raw GPS
velocity: not measured
IMU dead reckoning
EKF fused

Trajectory (m)

Position error over time (m)

Truth GPS fixes Dead reckoning EKF

State: [x, y, vx, vy, biasx, biasy]. Predict at 100 Hz with IMU acceleration, update with GPS position. 60 s run. Values are position RMSE.