Truth & process
nominal vx,0 5.0 m/s
nominal vy,0 3.0 m/s
σa (process) 2.0 m/s²
σb (clock RW rate) 3.0 m/√s
total time T 300 s

The filter starts at x̂0 = (0, 0, vx,0, vy,0, 0); truth is drawn from N(x̂0, P0) with σ = 10 m in position, 10 m/s in velocity and σb,0 = 50 m in clock bias. After that the clock bias random-walks at rate σb (its spread grows as σb√t). The filter's Q uses the same σa and σb as the truth.

GPS satellites · one scalar pseudorange each
σρ (all satellites) 10.0 m

Each pseudorange is its own scalar measurement: the EKF processes the satellites one at a time, each with a 1×5 Jacobian and a scalar gain. Toggle satellites off to see the filter degrade gracefully (Block 6's snapshot NLLS solver needs at least three satellites in 2D, four in 3D, to produce anything). Drag a satellite on the sky compass, or focus it and use the arrow keys (±5°), to change the geometry.

t = 0.0 s

Live trajectory · top-down view (auto-scrolling, ±150 m window)

true trajectory (▲ now) EKF estimate (◆ now) 95% position covariance ellipse S1–S4: lights up when that satellite's update arrives

Last scalar update · how one pseudorange moves the five states

show:

—

êi = (p̂⁻ − s(i))/ρi—
Hi = [êx êy 0 0 1]—
νi = zi − hi(x̂⁻)—
Si = HiP⁻HiT + σρ2—
Ki = P⁻HiT/Si—
Δx = Kiνi—

Estimation error x̂ − x · ±95% bounds

x-channel error y-channel error clock-bias error ±95% bound, x (and b): 1.96σ from P ±95% bound, y
Position estimate
—
truth: —
Velocity estimate
—
truth: —
Clock bias estimate
—
truth: —
Position σp = √((σx² + σy²)/2)
—
—