Skip to main content
. 2021 Jun 28;21(13):4414. doi: 10.3390/s21134414
Algorithm 3 Distance check function to ensure a safe takeoff
  •      

    functionTake_off_distance_check(droneID, depot_queues)

          if (New outbound mission and droneID first in its corresponding depot_queues) or New return mission then

  • 3:

                  if no other drones flying near then

                        new_velocity← 1

                  else

  • 6:

                         new_velocity← 0

              end if

  • 9:

              return new_velocity

        end function