· 6 min read
Reinforcement Learning for Drones: What We Learned
How trial-and-reward training works, what happened when we trained our own drone pilot, and how students learn to test AI instead of trusting it.

Reinforcement learning (RL) teaches a computer by trial and reward. It tries something, gets a score, and adjusts so that whatever scored well becomes more likely next time. Chatbots are fine-tuned this way, and so are many of the robot and drone controllers coming out of research labs.
This fall we trained our own drone pilot with RL, on an ordinary computer, and tested it the way we'd want students to test any AI: against a plain hand-written controller, on the same flights, with the bad runs left in. Here's what we found.
How it works
The program being trained (the "policy") watches the drone's position and speed and picks a direction and speed to fly. After every step it gets points: some for getting closer to the next goal, points off for crashing or jerking the controls. Run that loop millions of times and the policy gets good at whatever the points reward.
The method we use, PPO, is the same one OpenAI used in 2022 to fine-tune its InstructGPT chatbot. The difference is the cost of practice. A chatbot can try again almost for free. A drone that crashes breaks a propeller, so nearly all drone RL happens in a simulator first.
We trained a drone pilot in about six minutes
Our simulator models the 3.5-inch drone our students will build, flown by ArduPilot, the open-source autopilot. That split matters. ArduPilot keeps the drone level, runs the motors and handles the failsafes. The AI only chooses where to go and how fast. If the AI does something odd, the autopilot is still in charge of keeping the drone in the air.
On November 13 we reran the training from scratch: 256 simulated drones practicing at once, 6 million steps, 5.6 minutes on a 4-core processor. No graphics card needed.

Then we tested it on 200 flights it had never seen, alongside a hand-written controller: a few lines of code that point the drone at the next goal and slow it down as it gets close. "Harder conditions" means a worse radio link, gusts and a floor that's harder for the drone's downward motion sensor to read than anything in training.
| 200 test flights each | Finished | Average time |
|---|---|---|
| Trained policy, normal conditions | 100% | 12.1 s |
| Hand-written controller, normal conditions | 100% | 12.2 s |
| Trained policy, harder conditions | 100% | 12.4 s |
| Hand-written controller, harder conditions | 100% | 14.4 s |
On an easy course, the AI ties a few lines of ordinary code. It only pulls ahead, by about two seconds, when the radio and the air get worse. That's an honest result, and it's why every one of our reports includes the hand-written baseline. Without it, "100% success" sounds far more impressive than it is.
When the scoring is wrong, the AI finds the loophole
The drone had to stop at the last goal. Our first idea was to take points off for any speed near that goal. The policy found a way around it: it learned not to settle at the goal at all. It reached three goals, then looped and swooped around the last one until time ran out. Across 200 test flights it finished zero.

The fix was to count arriving and stopping as one kind of progress, so slowing down at the goal always earns points instead of costing them. That run hit 100%. We've seen the same thing with other settings: one combination taught the drone to swing back and forth across the goal at full speed. The lesson is the one we want students to leave with. Watch what the AI actually does, not just its score.
Sensors decide what's possible
Next we put a wall of posts between the drone and its goal, with one gap somewhere along it. With no sensor, the trained policy did the safe thing: it hovered near the start until time ran out. With a single forward distance reading, one policy found the gap in about 4 rooms out of 10. With eight readings across the view and a short memory of the last half second, our best run found it about 60% of the time. That beat our hand-written avoider (40%), though a second run with the same setup only reached 35%.

None of these is good enough to trust yet, and results swing a lot between runs. But the trial did its job. It told us which inexpensive sensor is worth adding to the drone before we spent anything on it.
What we took home from Action Space
In October we sponsored Action Space, a two-day drone hackathon at the Microsoft NERD Center in Cambridge, Massachusetts. Teams trained policies in simulation on Friday and flew them on small indoor drones on Saturday. A few things stuck with us.
Moving from simulator to real drone can happen in a day when the drone is small, the flying area is closed off, and a person can stop it at any moment. Our own first real flights will follow the same rules, and for classrooms we add a net or a cleared gym.
The drones found their position from printed markers called AprilTags on the floor and walls (the photo at the top of this article is the flight area). Our landing tests in simulation reached the same conclusion. A drone using only its downward camera drifts about 20 cm, and no amount of training fixes that. Precise work needs a fixed reference the drone can see.
After the event we wrote our own training and flight code from scratch, keeping the autopilot in charge of safety and the AI in charge of decisions.
The best-known result: a drone that raced champions
In 2023 a University of Zurich team published Swift in Nature: a racing drone trained with RL in simulation that won 15 of 25 races against three human champions. It used the same split we do, a small learned controller on top of traditional position estimation.

Twenty-five races is a small sample. By our calculation, the true win rate could be anywhere from about 41% to 77%. The stronger evidence is that Swift set the fastest race time. It also couldn't recover after a crash and only flew the track and lighting it was trained on. Superhuman at one well-defined task, brittle outside it: that's a fair summary of RL in robotics today.
How students learn this without writing code
Our AI and Autonomy module comes with Drone Building early access in January 2027. Students don't program the AI. They design the scoring, predict what the drone will learn, train it, and test it against the hand-written controller on the same flights. Then they decide when a person has to take over. The skill we're teaching is judgment: measuring an AI instead of trusting it.
Autonomous flights stay inside a net, with the teacher ready to take over. If you teach and want this in your program, see how we work with schools. For the camera side of the same problem, see how computer vision spots small drones.
Common questions
Is the reinforcement learning in chatbots the same as in drones?
The core method is shared. PPO and its relatives train both. What differs is the scoring and the cost of practice: chatbots are scored on their answers, drones on equations about the flight, and drones practice in a simulator because real crashes are slow and expensive.
Has your AI flown a real drone?
Not yet. It flies in our simulator and through ArduPilot's own simulator, which runs the real autopilot software. First real flights are planned for December, in a net, with a pilot ready to take over.
Do students need to know how to code?
No. Students choose settings, run training and read the results. The code stays on our side.
Last updated: November 2026. Our training results are from our own runs on November 1 and 13, 2026 (PPO with Stable-Baselines3, 200 fixed test flights per row). Swift results are from the paper linked above; the confidence intervals are our calculation (Wilson 95%).
Comments
Loading comments...
Sign in to join the conversation.