Skip to main content
. 2017 Nov 21;17(11):2690. doi: 10.3390/s17112690
Algorithm 3 Sensor navigation algorithm description.
Require: ai,0, ϕi,t, for i=1,,N, t=0,,T1, va, τ
  1: Initialization: a^i,0ai,0
  2: for t=1,,T1 do
  3:  for i=1,,N do
  4:    a˘i,ta^i,t1+vaΔ[cos(ϕi,t1),sin(ϕi,t1)]T
  5:   if a˘i,tx^tτ then
  6:    a^i,ta˘i,t
  7:    ai,tai,t1+vaΔ[cos(ϕi,t1),sin(ϕi,t1)]T+rx,t
  8:   else
  9:    ϕ˘i,tϕi,t+(1)iπ/4
 10:    a^i,ta^i,t1+vaΔ[cos(ϕ˘i,t1),sin(ϕ˘i,t1)]T
 11:    ai,tai,t1+vaΔ[cos(ϕ˘i,t1),sin(ϕ˘i,t1)]T+rx,t
 12:   end if
 13:  end for
 14: end for