Real state estimation is nonlinear. A range to a beacon is √((x−bx)²+(y−by)²) — a curve, not a line — so the plain Kalman filter's linear update breaks. The Extended Kalman Filter's move is simple and powerful: at each step, take the derivative of the measurement with respect to the state (the Jacobian), and use that local linear approximation for the update. Predict the state forward with a constant-velocity model, then correct it by how far each measured range differs from the range you'd expect. This is exactly the machinery inside PX4's EKF2 and every GPS/UWB/visual-inertial estimator — the nonlinear filter that actually flies.