Skip to main content
. 2021 Jun 28;21(13):4414. doi: 10.3390/s21134414
Algorithm 4 Conflict management stage function
  •  

    functionCheck_conflicts(drone, drone_of_higher_ID)

         safety_distance← 12 cells in horizontal plane and 5 cells in vertical axis

          if Drones closer than 25 cells and trajectories closer than safety_distance then

  • 4:

              if New conflict then

                    Assign conflict priorities to both drones

              end if

              priority_drone.velocity ← min(priority_drone.velocity,1)

  • 8:

              non_priority_drone.velocity ← 0

          end if

          return drone.velocity, drone_of_higher_ID.velocity

    end function