Algorithm 1 Cruise communication coverage algorithm based on internal helix |
Input: cell center location, key area location, UAV coverage radius R
Output: UAV cruise track
The process:
Set the center point of the cell closest to the origin of coordinates in the target region as the initial waypoint ; The UAV looks for the geometric center point of the nearest cell as the next waypoint in the internal spiral direction clockwise or counterclockwise.
If the cell of the next geometric center point contains key regions g, the number of key regions in the cell is calculated; Find the next nearest central point and judge the number of key regions in the cell of the central point until there is no key region in the cell of the next nearest central point .
The shortest path algorithm is adopted to calculate the shortest path from the current central point through the key area g to the central point .
Otherwise, directly take the center point of the next cell as the current optimal waypoint.
Repeat Steps 2–5.
Use a straight line to connect each waypoint in the order of access.
Return the cruise track of the UAV.
|