|
Algorithm 1: MALS-TSF |
|
Phase I: |
| 1: 1. Initialization
|
| 2: Each sensor node initializes data: = depth, = 0, = 0, = 0; |
| 3: Each anchor node initializes data: deployment is shown in Figure 8. |
| 4: 2. Ordinary Sensor Node Localization
|
| 5: If
, then obtain the value of by Equation (12) and record = + 1; |
| 6: End.
|
| 7: If
, then
|
| 8: The estimated location of the sensor node is obtained by Equation (16) and Equation (22)–(25); |
| 9: And the confidence value of the sensor node by Equation (26); the = 1; |
| 10: End.
|
| Phase II: |
| 11: If the confidence value in Phase I, then
|
| 12: the node as a new reference node in Phase II; |
| 13: End.
|
| 14: If
= 0, then send localization request is shown in Figure 5; |
| 15: End.
|
| 16: If
, then obtain the value of by Equation (12), and records = + 1; |
| 17: End.
|
| 18: If
, then estimate the node position; |
| 19: End.
|