|
Algorithm 1: Collect CPP at junctions |
Input: , , , Output: void |
Begin
← null
if = then
if = CPP_Master OR CPP_Sub_Set AND then
← GetTimerStart(1 s)
while
≠ TIMEOUT do
if = CPP_Master then
.Update()
else if = CPP_SubSet then
.Update()
else if
if
≠ null then
if = then
FindOptimizedPath()
end if
end if
end while
end if
end if
return 0
|