|
Algorithm 1 Routine of the complete developed strategy |
-
1:
← Occupation matrix of the simulated environment
-
2:
← Viscosity maps computed from . Constraints: Distance to obstacles and flight levels.
-
3:
Define number of drones
-
4:
Define the position of the two depots
-
5:
Depot assignment: Half of drones to one depot and the other half to the other
-
6:
← 0
-
7:
while < 7000 do
-
8:
← Queues of drones waiting to take off in depots
-
9:
for every do
-
10:
if drone ends its current mission or == 0 then
-
11:
←Generate_mission(,,)
-
12:
← 0
-
13:
end if
-
14:
if drone is waiting to start new mission then
-
15:
←Take_off_distance_check(,)
-
16:
end if
-
17:
for every do
-
18:
(,) ←Check_conflicts(, )
-
19:
←
-
20:
←
-
21:
end for
-
22:
if drone without conflicts being the non_priority vehicle and not landed then
-
23:
← 1
-
24:
end if
-
25:
end for
-
26:
← + 1
-
27:
end while
|