Hawk is coming to your drone. The AI pilot that talks back. Tell me what you fly.Join the waitlist →

Guide · vision · 20 min

Flying a drone with hand signs

A phone on a tripod, MediaPipe's hand model, and a state machine that turns a fist, a rock-on and a held hand into orders a PX4 quadcopter flies. The vocabulary, the rules that stop a stray finger arming the motors, and what the tracker cannot do. Enter your email and it opens, now and whenever you come back.

One email per build. Unsubscribe anytime.

Guides / vision

Flying a drone with hand signs

A phone on a tripod, MediaPipe's hand model, and a state machine that turns a fist, a rock-on and a held hand into orders a PX4 quadcopter flies. The vocabulary, the rules that stop a stray finger arming the motors, and what the tracker cannot do.

vision20 min15 November 2026

Two field days in November 2026. The numbers are from the flight logs and from replaying the phone recordings through the recogniser afterwards.

The voice version of this drone needs a microphone that can hear you over the rotors. The hand version needs a camera that can see you, and it turns out to be the better demo: everyone understands a fist and a raised arm, and the aircraft answers within a second. This is how it works and what it took to make it reliable.

The shape of it

LAPTOP · ON THE GROUND AIRCRAFT Phonetripod, 1.8 m MediaPipepose + wrist, 30 fps Rulesfist is the clutch "go up 5 m"one order, as text Pilotgate, limits PX4over the SiK radio Transmitteralways wins the same pilot the voice version uses THE RULES, ONE ORDER AT A TIME Idleno fist, nothing Armingfist still, 0.4 s Armedmotors on, or the clutch Sign or movewithin 5 s of the fist Sentone order, once the ratchet: the hand must open before the next order a moved fist restarts the hold open palm needs no fist, ever LAND ON THE SWITCH IS THE ABORT. KILL IS FOR A PERSON AT RISK. LAPTOP · ON THE GROUND Phonetripod, 1.8 m MediaPipepose + wrist, 30 fps Rulesfist is the clutch "go up 5 m"one order, as text Pilotgate, limits: the same one the voice version uses AIRCRAFT PX4over the SiK radio Transmitteralways wins THE RULES, ONE ORDER AT A TIME Idleno fist, nothing Armingfist still, 0.4 s Armedmotors on, or the clutch Sign or movewithin 5 s of the fist Sentone order, once the ratchet: open the hand first a moved fistrestarts the hold open palm needsno fist, ever LAND ON THE SWITCH IS THE ABORT

The recogniser never talks to the aircraft. It produces the same text a spoken order would produce, “take off”, “go left 2 metres”, “do a 360”, and hands it to the pilot process over a local socket. Every limit and refusal in the pilot applies unchanged. That decision meant the hand version inherited two months of safety work for free.

The model

MediaPipe’s gesture recognizer, from Google, running on the laptop CPU at camera rate. It gives, per frame, 21 hand landmarks and one of seven canned poses with a confidence: closed fist, open palm, thumb up, thumb down, victory, pointing up, and the rock-on sign, which the model calls ILoveYou.

from mediapipe.tasks.python import BaseOptions, vision
opts = vision.GestureRecognizerOptions(
    base_options=BaseOptions(model_asset_path="gesture_recognizer.task"),
    running_mode=vision.RunningMode.VIDEO, num_hands=1,
    min_hand_detection_confidence=0.5, min_tracking_confidence=0.3)
rec = vision.GestureRecognizer.create_from_options(opts)

No training, no custom classes. The work is all in what you do with the sequence of poses, not in the poses themselves.

The vocabulary

Five things. Fewer is better, for the viewer and for the false-positive rate.

SignWhat it doesWhy this sign
Closed fist, held still 0.4 sArms. On the ground that starts the motors. In the air it is the clutch for a move.The one pose a hand makes deliberately.
Rock-on, held 1.2 s, within 5 s of a fistTake off. In the air: land.Index, pinky and thumb out with the middle two curled. No hand does that on its way to anything else, so the two orders that change the aircraft’s state live on it.
Fist moved and held still 0.3 sA step. 2.5 hand lengths sideways is 2 m, nine is 4 m. Up is 1 m or, arm above the head, 5 m. Down is 1 m.The most legible thing on camera: hand goes there, aircraft goes there.
V sign, held 0.8 sA full 360.Distinct from everything else.
Open palm, held 0.6 sStop. The only sign that needs no fist first.Universal, and stop must always work.

Thumb up and thumb down were in the first version for up and down a metre. They came out. Both are one finger away from a closed fist, which is the clutch, and a thumb drifting out during the arm hold was the most likely misfire in the system. Once a moved fist handled vertical steps they were redundant.

The rules

The poses are cheap. The rules are what make it safe to stand next to.

  • Fist first. Every sign except the palm is ignored unless a fist was held within the last five seconds. Two deliberate acts before anything moves.
  • Held signs are debounced. The classifier flickers. A sign that drops out for less than a third of a second does not restart its hold. Before that rule, take-off was a lottery.
  • A fired sign must leave the frame before it can fire again. Holding the rock-on a little long after take-off was, for one afternoon, a landing.
  • The ratchet. After a move fires, the hand must open or drop before the next one. A closed fist that stays closed cannot chain orders.
  • A sign on the ground is a sign on the ground. The pilot reads the rock-on by state: armed on the ground, take off; airborne, land; disarmed, nothing.
  • The transmitter always wins. Nothing above changes that. Land on the switch is the abort.

The move rule, and what the tracker cannot do

The first version measured a sweep: the fist’s displacement over the last half second. It fired about half the time, and the replay showed why. MediaPipe drops a moving side-on fist at well under one hand-length of motion per frame, blur and shape both, and its palm detector then takes one to three seconds to find the fist again, because at 3.5 m the fist is eleven pixels wide in the detector’s input. The rule measured the one thing the tracker was worst at.

The rule now is two rules, whichever fires first:

  1. The path. While the fist is tracked, remember its largest displacement from the clutch point. The moment the hand opens or vanishes, decide on that. This is how every step in the field flew: a flick, then the hand opened.
  2. The endpoint. If the fist comes to rest away from the clutch point and stays still for 0.3 s, decide on where it rests. This is for the slow, deliberate move the camera can follow all the way, and for the fist the tracker lost mid-flight and found again at rest.

Replayed over a full flight’s phone recording, the combined rule reproduces 12 of the 14 steps the pilot actually flew, with the four-metre step once, as flown. The two it misses are flicks where the hand had opened before it travelled far enough. Lowering the detector’s confidence to find more hands added a spurious stop and a spurious take-off sign in the same replay, so it stayed where it was.

The camera

  • A phone on a tripod as a webcam, about 1.8 m away at chest height, tilted up so there is sky above your head. The reveal sign is a fist above the head, and in the first attempt it went out of the top of the picture.
  • Recognise on a crop. At three metres on a wide lens the hand is three percent of the frame and the detector cannot find it. A 2x crop of the frame that follows the hand doubles it. The rules measure in full-frame coordinates so the crop chasing the hand cannot hide the move.
  • Thresholds in hand lengths, not pixels. The wrist-to-knuckle length is measured during the fist hold, so the same arm movement means the same thing at two metres and at four.
  • The laptop’s own camera is useless outdoors. Backlit, the hand is a silhouette. Use the phone.
  • Hold the phone still with a cable, not over WiFi. The wireless feed froze once mid-flight.

What a flight looks like

Fist, 0.4 s, the motors start. Rock-on, 1.2 s, the aircraft climbs to 2.5 m. Fist, raise it above your head, hold: it climbs five metres and the camera on it looks over your head at the city. V sign: a full turn. Rock-on: it comes down and the props stop. Fifteen flights on the second field day, every one by hand, the reveal arriving within half a metre of its target each time.

Two things did go wrong, neither of them the hands. The telemetry radio dropped for twenty seconds twice, both times with the aircraft nearly overhead at seven metres, where a vertical antenna cannot see another vertical antenna. The sideways steps I signed in that gap were refused as stale, which is what the pilot is supposed to do. And a rooftop with steel in it made the compass creep in the first hover. Both are field problems, not hand problems, and both are in the field-day guide.

The screen

The window that runs the recogniser is also the thing the audience sees, so it says what the system is thinking: the state, the sign’s name in plain words, a ring that fills while a hold runs, a box the fist has to leave for a step, an arrow from the clutch point to the hand, and the aircraft’s altitude, battery and link age read from the pilot’s own logs. Nothing on it is invented. When the radio stalls it says so in red, and the orders you give in that second are refused on screen with the reason. That turned out to be the most useful debugging tool of the project, and the part of the video people ask about.