-
1:
function
h_func()
-
2:
if
then ▹ Source is TX
-
3:
if
then ▹ Receiver is RX
-
4:
Calculate , , from (tx, rx) with (9)–(11)
-
5:
Calculate signal strength with (8) substituting for
-
6:
Calculate discrete time from distance , and light velocity
-
7:
if
< FoV then
-
8:
-
9:
end if
-
10:
else ▹ Received signal strength at all points from TX
-
11:
for
from to
do
-
12:
Calculate , , from with (9)–(11) substituting for the element
-
13:
Calculate signal strength with (8) substituting for the element and for
-
14:
h_func()
-
15:
end for
-
16:
end if
-
17:
else ▹ Source is not TX
-
18:
if
then ▹ Receiver is RX
-
19:
Calculate
from with (17)–(20), (23) substituting , and
-
20:
Calculate signal strength with (14) substituting for
-
21:
Calculate discrete time from distance , and light velocity
-
22:
if
< FoV then
-
23:
-
24:
end if
-
25:
else ▹ Received signal strength at all points from TX
-
26:
for
from to
do
-
27:
Calculate from with (17)–(20), (23) substituting , and
-
28:
Calculate signal strength with (14) substituting for
-
29:
h_func()
-
30:
end for
-
31:
end if
-
32:
end if
-
33:
end function
|