Skip to main content
. 2023 Jul 29;23(15):6795. doi: 10.3390/s23156795
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 q(t)

The process:
  1. Set the center point of the cell closest to the origin of coordinates in the target region as the initial waypoint q0; The UAV looks for the geometric center point of the nearest cell as the next waypoint q1 in the internal spiral direction clockwise or counterclockwise.
  2. If the cell of the next geometric center point qi contains key regions g, the number of key regions sj in the cell is calculated; Find the next nearest central point qi+1 and judge the number of key regions sj+1 in the cell of the central point qi+1 until there is no key region in the cell of the next nearest central point qi+n.
  3. The shortest path algorithm is adopted to calculate the shortest path from the current central point qi through the key area g to the central point qi+n.
  4. Otherwise, directly take the center point of the next cell as the current optimal waypoint.
  5. Repeat Steps 2–5.
  6. Use a straight line to connect each waypoint in the order of access.
  7. Return the cruise track q(t) of the UAV.