Skip to main content
. 2013 Oct 21;13(10):14133–14160. doi: 10.3390/s131014133

Algorithm 4: Recursive EKF algorithm with event based update

Input: uk,zk,xk−1,Pk−1,LGM
Output: x̂k,Pk
Data:f and h from model (6), Qk,Rk,ANXT
Initialization: x0,P0
for current time k do
 Prediction Step EKF:
 (same as Algorithm 1)
 Correction Step EKF:
  Kk=PkHkT(HkPkHkT+VkRkVkT)−1
 x̂k = x̂k+Kk[zk−h(x̂k,0)]
 Pk = (I−Kk Hk) Pk
 3 − σ ellipsoid area Aellip
 RA = Aellip/ANXT using (12)
 if RA > RA,lim then
  Global Correction Step:
  xEKF = xEKF + ΔX
  yEKF = yEKF + ΔY
  θEKF = θGM
  Pk,p = P0,x,y,θ
 end
end