Dev.to AI 🤖 Ai 👁 0 📖 2 min read

Turn your drone's latency into metres before you choose where the model runs

Engineers usually argue about drone AI in milliseconds. Pilots and safety reviewers think in metres. Converting one into the other early settles most of the cloud versus onboard question before anyone picks hardware. Th

Turn your drone's latency into metres before you choose where the model runs

Edge AI on drones: the model flies with the aircraft

Engineers usually argue about drone AI in milliseconds. Pilots and safety reviewers think in metres. Converting one into the other early settles most of the cloud versus onboard question before anyone picks hardware.

That conversion sits at the centre of our article on edge AI on drones, which also covers the two-computer architecture, the public evidence and the flight rules. This post keeps to the arithmetic and a checklist.

The conversion

Distance flown during a delay is speed times latency. Nothing more.

def metres_flown(speed_mps, latency_ms):
    return speed_mps * latency_ms / 1000

for ms in (40, 200, 500):
    print(ms, "ms ->", metres_flown(15, ms), "m")
# 40 ms -> 0.6 m
# 200 ms -> 3.0 m
# 500 ms -> 7.5 m

At 15 metres per second (54 km/h), a 500 millisecond round trip to a server means 7.5 metres of flight before the drone can react. For a cable or a branch ahead, that distance can be the whole gap. A photo retake can wait.

Where the model goes

The usual PX4 setup splits the work between a flight controller that runs the core flight and safety code and a Linux companion computer for heavy tasks, linked over serial or Ethernet. Put the model on the companion computer. If the AI software crashes, the flight controller still holds the aircraft and runs its failsafe.

Swift, the University of Zurich and Intel Labs racing drone reported in Nature in 2023, is the public benchmark: onboard sensors, a Jetson TX2, 40 milliseconds of sensorimotor latency. Expert human pilots averaged 220.

Checklist before you train

  • [ ] Write the one decision the drone makes in flight as a single sentence.
  • [ ] Fix the speed and the distance you can afford, then compute the latency budget.
  • [ ] Move jobs with no time pressure, such as full survey models and monthly trend reports, to a server after landing.
  • [ ] Price the companion computer in grams and watts. Both come out of flight time or payload.
  • [ ] Collect footage from the real site in bad light and bad weather. The Swift authors note their perception can fail when lighting or appearance changes from training.
  • [ ] Check the rules. In the US, 14 CFR 107.31 still requires visual line of sight without a waiver, whatever runs on board.

Dev Station builds the onboard model and the systems around it for drone programmes, alongside the drone maker and the operator. The full breakdown, with use cases and the US and UK rule status, is at https://dev-station.tech/edge-ai-on-drones/

📰 Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.