Skip to main content
. 2019 Feb 15;19(4):795. doi: 10.3390/s19040795
Algorithm 1 Data filtering operation
INPUT: sensor reading z(t)
  e_max = user input
  while true do
   if z(t) is the first reading then
    cached_z(i) zt(i)
    Send z(t) to the fuser
   else
    if cashed_z(i) ! = z(t) then
     cached_z(i) z(t)
     Call kalman filter to calculate estimated value
     e(t)z(t)x(t)
     if |e(t)|>emax then
      fd(i)z(t)
      Send fd(i), R(i) and H(i) to the data fusion layer
     else
      Discard x(t) and z(t) values
     end if
    end if
   end if
  end while