-
1:
procedureFind Tx period(, , , , , , , , , , , , , )
-
2:
▹—long. position of vehicle i, —velocity of vehicle i, —acceleration of vehicle i, —target inter-vehicle distance, —minimum distance constraint, —set of possible transmission periods, —set of possible initial time offsets, —maximum prediction time span, —controller function
-
3:
for each , do:
-
4:
for each , do:
-
5:
Calculate:
-
6:
,
-
7:
, ,
-
8:
,
-
9:
,
-
10:
,
-
11:
while & & do:
-
12:
Calculate:
-
13:
,
-
14:
, ,
-
15:
-
16:
, ,
-
17:
-
18:
if & & then:
-
19:
-
20:
break
-
21:
end if
-
22:
end while
-
23:
Set:
-
24:
end for
-
25:
Select:
-
26:
Set:
-
27:
Set:
-
28:
end for
-
29:
Select:
-
30:
Set:
-
31:
Set:
return
-
32:
end procedure
|