IISc's AeroGen Hits 100% Drone Mission Success Without a Simulator
A single well-crafted prompt plus a drone SDK gets language models to write autonomous UAV missions correctly on the first try, every time.
ProTakeaways
- AeroGen achieves 100% first-pass success on 20 navigation tasks and 5 analytics missions using single-shot prompting.
- Framework pairs structured guardrail prompts with the AeroDaaS drone SDK to eliminate simulator-in-the-loop retry cycles.
- Cuts total tokens 43% and generation time from 6480s to 877s versus closed-loop CLG baseline.
- Static prompts cover APIs and constraints; dynamic prompts inject robot, runtime and world information per mission.
- Frontier models (GPT o3-mini, Gemini 2.5 Pro) succeed fully; edge models with 16k context fail on long-horizon tasks.
- Same generated code runs on Gazebo simulation and real DJI Tello without modification, per the paper.
Getting a large language model to write drone control code is easy. Getting it to write code that will not crash the aircraft into a building is much harder. A team from the Indian Institute of Science has proposed AeroGen, a framework that claims a 100% first-pass success rate on autonomous UAV missions by carefully engineering the prompt and pairing the LLM with a high-level drone SDK.
The setup is deliberately old-school in one respect. It is open-loop, meaning no simulator-in-the-loop feedback corrects the model after each failed attempt. Everything the model needs to know is packed into one structured system prompt, and the code it produces is expected to run correctly on the first try.
Why LLM-generated drone code keeps crashing
Prior approaches have gone in two directions. Early open-loop methods handed the LLM structured prompts with state-transition logic, skill APIs and constraints to nudge it toward valid programs. More recent work moved to closed-loop pipelines where one model generates code and another critiques it based on simulated trajectories.
Both have real problems. Closed-loop systems need a running simulator, waste tokens on retries, and can still physically damage hardware during correction cycles. Open-loop systems accumulate errors on anything more complex than a straight-line flight. Nearly all prior work also stops at pure navigation, ignoring sensing and analytics.

Static and dynamic guardrails
AeroGen's key move is treating drone autonomy as a constrained code generation problem and stuffing the constraints into the prompt itself. The schema has two layers:
- Static guardrails that never change: role guidelines, the coordinate reference frame (North-East-Up), rotation conventions, the AeroDaaS API signatures, and a few worked examples.
- Dynamic guardrails that change per mission: Robot Information covering max speed, battery endurance and active sensors; Runtime Information covering available compute, model sizes and latencies; and World Information covering flight corridors, road networks and altitude limits.
That last piece is what lets the LLM reason about which YOLO variant to deploy on which edge device, or which road segments count as legal flight corridors. The generated code is written against AeroDaaS, a drone SDK exposing high-level primitives like IRobot.navigate, ISensor, IAnalyse and a PriorityQueue for mission scheduling, rather than raw MAVLink commands.
Numbers that actually matter
The team benchmarked AeroGen against CLG, the current state-of-the-art closed-loop baseline, on 20 advanced navigation tasks plus 5 new analytics-driven missions covering farm survey, cable inspection, radio tower detection, multi-destination delivery, and search and track. Missions ran in Gazebo simulation and on a real DJI Tello with a Jetson Orin Nano edge node.
The comparison is lopsided:
| Metric | CLG baseline | AeroGen |
|---|---|---|
| Single-shot success (20 nav tasks) | 0 / 20 | 20 / 20 |
| Total tokens across benchmark | 209k | 118k |
| LLM generation time | 6480 s | 877 s |
| Total cost | $0.59 | $0.19 |
AeroGen cuts total mission cost by 43% and generation time by roughly seven times, largely because 85% of its tokens are cheap input tokens rather than expensive reasoning tokens. Each mission produces around 40 lines of Python in about 20 seconds.
Where it breaks
The 100% figure comes with a caveat. It holds for high-end cloud models. GPT o3-mini and Gemini 2.5 Pro complete all missions correctly thanks to their 200k and 1M context windows, while Llama3-70B and DeepSeek-Qwen-32B running on a Jetson Thor struggle with long-horizon autonomy because their 16k context cannot internalize the full guardrail prompt. Only cable inspection survives on the edge models.
The examples in the prompt also matter more than you might expect. Removing either waypoint or analytical demonstrations drops prefix completeness to as low as 25%, with the LLM reversing trajectories, miscomputing yaw angles, or hallucinating non-existent functions. With zero examples, every mission fails.

What the model figures out on its own
The more interesting finding is how much the LLM composes from documentation rather than examples. On the two declarative missions, it invoked 16 unique AeroDaaS APIs out of the 37 documented in the prompt, using methods like clearNavigation, get_data and the PriorityQueue class that never appear in the few-shot examples. For the radio tower mission it independently computed a lawnmower search grid using the camera field-of-view formula from the robot prompt, then switched between search and inspection modes via a priority queue.
Generated code for simulation and real-world deployments turned out to be structurally identical, with only the underlying drone reference (PX4 versus Tello) differing. The authors say they will release the code and prompts after peer review. For now, the practical takeaway is that a well-designed SDK plus a well-designed prompt can substitute for a lot of runtime supervision, at least when you can afford a frontier model with a large context window.