Skip to main content
. 2017 Apr 26;17(5):951. doi: 10.3390/s17050951
Algorithm 1 BLE-driven trilateration method.
1: while accepted distances i Threshold τ1 do
2:  collect the RSSI readings from n BLE modules
3:  if the RSSI is registered then
4.   apply the Kalman filter
5:   compute the distance di
6:  end if
7:  if di> Threshold τ2 then ignore di
8:   go to Step 2
9:  end if
10: end while
11: apply the multilateration for i distances
12: apply the average filter and update the position