FPV gate racing from the camera: gate detector + state estimator + PPO policy
A simulated quadrotor races through gates using only its FPV camera and a simulated IMU, and outputs the four commands a human pilot sends (thrust and roll / pitch / yaw rate). A CNN finds the gates in each frame, written code turns the detections into a state estimate, and a PPO policy flies on that estimate. Nothing on the track is painted or highlighted. It is all simulation: physics in Crazyflow, frames from a fast synthetic renderer and from Unreal Engine 5 (Project AirSim). This follows Abuudiii/fpv-gate-racing, where one CNN flew from pixels and needed the next gate painted green on unseen tracks. Code: https://github.com/Abuudiii/rl-experiments/tree/main/fpv-racing
Slalom in Unreal (26 gates in 30 s, no crash)
Split-S in Unreal (41 gates in 30 s, no crash; the drone flips past 150° at the high gate and drops to the low one)
Both are the first flight from a fixed start (seed 900002, slot 0), not picked. Every video on this page is chosen the same way, including the one that crashes.
Three laps = three laps completed in a 30 s flight. In every test the gates are shifted (up to 0.3 m per axis and 0.2 rad) and mass, thrust, drag and command delay are randomised per flight.
| Test | Flights | Three laps | Crashed | Mean lap time |
|---|---|---|---|---|
| Unreal, six named tracks (one policy, one detector) | 24 per track, 144 | 134 of 144 (93.1%); 20 to 24 of 24 per track | 4 of 144 | 5.73 s |
| Unreal, split-S (its own policy and detector) | 24 | 23 of 24 | 1 of 24 | 4.67 s |
| Synthetic renderer, unseen random tracks | 2,048 | 93.8% | 4.6% | 6.14 s |
| Synthetic renderer, six named tracks | 2,048 per track | 92.5% mean (85.2% to 98.7%) | 5.9% mean | 5.72 s |
| Teacher from the true state, same synthetic flights | 2,048 per set | 100% | 0% | 5.92 s (random) |
Contents
- Videos
- How it works
- Results
- Sim to Unreal
- Split-S
- What did not work
- Compute and training cost
- Files
- Use
- Limits
Videos
Every track in Unreal
Each clip is the pipeline's first flight from the same fixed start (seed 900002, slot 0) on the track's nominal layout, 30 s. None were picked; the figure-8 flight crashes at 2.76 s and stays in. Panels: top left the plain Unreal frame the detector saw (with the commanded sticks as bars), top right a chase camera, bottom left an overview camera, bottom right a top-down map with the flown path. Each track also has the detector's view (the 320×180 input with the detections drawn), a contact sheet and the flown path against the state-based teacher from the same start.
All flights below use the same policy and the same Unreal-fine-tuned detector, except the split-S, which has its own (see Split-S).
Slalom: 26 gates, no crash.
detector view · contact sheet · path vs teacher
Split-S: 41 gates, no crash, maximum tilt 158°.
detector view · side view · contact sheet · dive sheet · path vs teacher
Circuit: 38 gates, no crash.
detector view · contact sheet · path vs teacher
Clockwise (the circuit flown the other way): 36 gates, no crash.
detector view · contact sheet · path vs teacher
Sprint + hairpin: 32 gates, no crash.
detector view · contact sheet · path vs teacher
Climb and dive: 35 gates, no crash.
detector view · contact sheet · path vs teacher
Figure-8: passes 1 gate, then hits a gate frame at 2.76 s. This is the fixed first flight, so it stays. In the 24-flight evaluation the figure-8 completed three laps in 22 of 24 flights, with 2 gate crashes in the first gates (see Unreal, by track).
detector view · contact sheet · path vs teacher
What the detector saw
The two main flights as the detector got them: the 320×180 frames with every detection above the 0.3 threshold drawn on them and the gate the estimator believes is next.
Six tracks in 3D
3D plots of the flown paths of six pipeline flights in Unreal (drawn from the flight records, not Unreal frames): slalom, split-S, climb and dive, circuit, sprint + hairpin, clockwise. Blue is the path, red frames are the gates.
Synthetic renderer
The same pipeline on the fast synthetic renderer that most of the numbers come from (first flight of each fixed evaluation set, 30 s, none crash). Left: the frame, the detections, and the gate the estimator believes is next (yellow dashed when right, red when wrong). Right: top-down view with the true next gate.
| Track | Video | Gates in 30 s |
|---|---|---|
| Random track 1 | random_flight0.mp4 | 23 |
| Random track 2 | random_flight1.mp4 | 32 |
| Circuit | circuit_flight0.mp4 | 37 |
| Clockwise | clockwise_flight0.mp4 | 34 |
| Figure-8 | figure8_flight0.mp4 | 25 |
| Slalom | slalom_flight0.mp4 | 25 |
| Climb and dive | climb_dive_flight0.mp4 | 32 |
| Sprint + hairpin | sprint_hairpin_flight0.mp4 | 33 |
Split-S teacher, with and without the inversion reward
The state-based teacher on the synthetic renderer: speed reward only (banks to about 100°, does not flip) and with the inversion reward. The same teacher in Unreal from the pipeline's start: teacher_flight_combined_side.mp4 (44 gates).
How it works
Two parts are learned: the gate detector (supervised) and the flight policy (PPO). They are trained separately and meet only at test time. Everything between them is written code. Every 20 ms (50 Hz) the chain runs once: frame, detector, geometry, estimator, policy, sticks.
Gate detector
- Input: one 320×180 RGB frame. Output: up to 6 gates, each as its 4 opening corners in pixels plus a confidence. Detections below 0.3 confidence are dropped.
- Network: a small residual CNN with a feature pyramid, CenterNet-style. One head marks gate centres, one regresses the 4 corners from the centre, and a corner heatmap snaps each corner to the nearest sharp corner peak. 3,891,196 parameters. 1.57 ms per frame at batch 1 on an MI355X.
- Labels: the simulator knows the camera pose and every gate, so it projects the true opening corners into each frame. No hand labels. A gate counts as visible when all corners are in front of the camera, at least 2 are in the image and its centre is within 12 m.
- Data: the state-based teacher flies random and named tracks with stick noise and off-course starts, so the camera sees gates from many angles. It only moves the camera; it labels nothing. 819,200 recorded poses; each is rendered during training with a random scene look.
- Six pilots (A to F) compared stride, width and occlusion labels at 40k steps. The final detector E is the stride-2 net trained for 120k steps: corner error median 0.079 px, next gate found in 99.94% of synthetic frames where it is in view (held-out random tracks, 32,000 frames).
- For Unreal it was fine-tuned on Unreal frames (see Sim to Unreal).
Geometry
Each detection goes through a square-gate PnP fit (the opening is 0.4 m): gate centre, gate plane and a fit quality. Bearing is accurate; range from 4 corners gets worse with distance (mean relative range error -13% at 4 to 8 m and -48% at 8 to 12 m on synthetic frames). The estimator weights each measurement by that: its uncertainty across the line of sight grows with distance d, along it with d².
State estimator, step by step
The estimator gets, every 20 ms: the detections, one IMU sample (gyro and accelerometer, with noise and bias), and the course list (next section). It never sees the drone's true position or how the gates were shifted for this flight.
- Tilt. The gyro is integrated to track which way is up. Gates stand upright, so the top edge of every good near gate fit is a measurement of "up" and pulls the estimate back; the same edges also estimate the gyro bias. The accelerometer is not used for tilt: on a quadrotor it measures thrust and drag, not gravity.
- Kalman filter. One filter holds the drone's velocity and the positions of the 6 gates, all relative to the drone. It predicts with the accelerometer and corrects with the PnP gate centres. Velocity comes out as "how the gates move relative to me", fused with the accelerometer.
- Course placement. The course list is laid over the gates it has matched with a 2D fit (heading and shift), including gates matched in the last 2 s. This predicts where gates that are out of view should be.
- Matching. Detections are matched to list gates by mutual nearest neighbour inside a distance gate that grows with distance and with the filter's uncertainty. A matched gate the filter was not tracking is started at the measurement.
- Lock and relocalise. At the start, and whenever the matches stop making sense, it tests hypotheses "detection k is gate j, flown in direction f" and jumps to the one that explains the most detections while predicting the fewest gates that should be visible but are not.
- Which gate is next. The next-gate index goes up when the estimated gate plane passes the drone. Every frame a consistency rule also checks which gate the drone is actually approaching and corrects the index if a pass was missed or spurious.
Everything is kept relative to the drone, so there is no world frame and heading drift does not matter. The code is
batched JAX and runs inside PPO for thousands of drones at once (fpv/perception/estimator.py, its docstring has
the details).
The 43 numbers and 3 flags
The policy sees 46 numbers. The first 43 have exactly the layout of the state-based teacher's observation, with estimates in place of the truth, so the teacher's network can be reused.
| Part | Numbers | From |
|---|---|---|
| Velocity in the body frame | 3 | Kalman filter |
| Attitude matrix | 9 | tilt only (heading is not observable and not needed) |
| Body rates | 3 | gyro, bias-corrected |
| Next gate, 4 opening corners in the body frame | 12 | gate positions + next-gate index |
| Gate after next, 4 corners | 12 | same |
| Previous action | 4 | the policy's own last output |
| Age of the next-gate information | 1 | 0 = seen now, 1 = old or predicted only |
| Age of the after-next information | 1 | same |
| Locked | 1 | 1 once a lock exists |
The course list
Before the flight the estimator is given the course list: the nominal centre (x, y, z) and heading of the 6 gates, in the order they are flown. That is all it knows about the track. Each flight then shifts every gate by up to 0.3 m per axis and turns it by up to 0.2 rad, and the estimator is not told by how much, so the gates still have to be found in the frames; the list only says roughly where to look and in which order. It is also not told where the drone starts or which gate comes first. The random training and test tracks are generated per flight and their list is given the same way. The old camera students were given no list.
Policy training and the noise model
- No frames are rendered while training the policy. The simulator projects the true gate corners and a noise model turns them into detector-like output: corner noise (partly correlated over time, with heavy tails), missed gates (more often when far or partly out of view, in bursts), false gates, a one-frame delay in a quarter of the flights, and dropouts that hide the true next gate for up to 0.5 s (on average one every 2 s).
- Each training flight draws its own noise scale from 0 (perfect) to 4 times the error measured on an early detector (pilot A), and its own IMU noise scale from 0 to 4.
- The estimator in the loop is the same code as at test time.
- PPO starts from the teacher: the actor is the teacher's MLP (3 × 256) with the 3 flag inputs added at zero weight, so at step 0 it is the teacher flying from estimates. The critic sees the estimates and the true state (training only).
- Same rewards and randomisation as the teacher, including off-course starts in half the flights and stick noise. 8,192 flights in parallel, 2.5e9 steps, 73 minutes on one MI355X.
What changed from the old camera student, and why
The old student was one CNN on the last 5 frames, trained by imitating the teacher (DAgger). On unseen random tracks it completed three laps in 27.7% of 256 flights (20 s) and needed the next gate painted green to reach about 70% (30 s). Its failures mixed two problems: seeing the gates and knowing which one is next.
This pipeline splits them:
- Seeing is a supervised detection problem with exact labels from the simulator, so it can be trained on hundreds of thousands of frames and checked frame by frame.
- Which gate is next comes from the course list and the estimator's own bookkeeping, not from a painted gate.
- Memory is explicit: the estimator remembers gates it saw (with their age) and integrates velocity, so the policy needs no recurrence and can start from the teacher.
- The policy trains on cheap low-dimensional estimates instead of frames, so PPO gets billions of steps.
The cost: the pipeline must be given the course list before the flight, and it uses a simulated IMU. The old students had neither.
Results
All numbers are measured; sample sizes are on the bars. Synthetic results use 2,048 flights per set; Unreal results use 24 flights per track.
Three laps by track, synthetic renderer
The full chain (frames, detector E, estimator, policy) on the same 2,048 flights per set as the other two pilots. It lands within 2 points of perfect detections on random tracks (93.8% vs 95.8%) and is weakest on the figure-8 and slalom (85% and 86%). The gap to the teacher (100%) exists even with perfect detections, so most of it is the estimator and policy, not the detector.
Noise robustness
True corners passed through the noise model at fixed scales, no frames. The main policy holds 92.4% at x1 and 82.4% at x2, then falls to 32.2% at x4 and 66.4% with dropouts (here about one per second, twice the training rate). Lap time barely moves (6.11 to 6.59 s), so noise causes crashes rather than slower flying. A second training seed gives 92.9 / 95.8 / 85.3 / 32.6 / 65.6% for x1 / perfect / x2 / x4 / dropouts.
Estimator versions
The largest single gain in the project. Right after a gate pass only the new next gate is in view, and estimator v4 took the whole course's heading from that one (randomly shifted) gate, which threw the later gates off by metres. v5 keeps gates matched in the last 2 s in the fit. The same v4-trained network went from 79.4% to 92.4% with no retraining. Retraining on v5 kept 92.4% at x1 and raised perfect-detection flights from 91.3% to 95.8%.
Crash causes
85 to 86% of crashes follow a wrong belief about where the next gate is, with both estimators. That label covers 8 to 12% of all flight steps, so it is 7 to 11 times more common just before a crash than by chance. This alone cannot separate cause from effect. The v4-trained network flown with v5 (not in the chart) crashed 144 times instead of 489, 3.4 times less with only the estimator changed, which suggests it is mostly cause. With v5 the remaining crashes moved to the start of the flight: half happen in the first 3.4 s.
Detector
On synthetic frames all six pilots find the next gate in at least 99.68% of frames. Stride 2 halved the misses and cut corner error by about a fifth; a wider net did not help. E is the stride-2 net trained 3 times longer, so part of its lead is training length, not design.
Trained only on synthetic frames, the detector found the next gate in 68 to 79% of Unreal frames per track. After fine-tuning on 90,000 labelled Unreal frames: 99.4 to 100% on every track. Upside-down split-S frames needed their own data: 90.8% before, 98.3% after adding 38,000 split-S frames. Only 346 held-out inverted frames had the next gate in view, so that number is the least certain.
Against the old camera students
The students' own evaluation flights (256 unseen random tracks each) replayed exactly through the pipeline on the synthetic renderer. Against the plain CNN on its 20 s flights: 69.9% vs 27.7%. Against the green-gate CNN at each round: 91.0 to 95.3% vs 41.8 to 71.5%, without painting anything. The comparison is not like for like: the pipeline knows the course list and uses a simulated IMU; the students had neither.
Unreal, by track
Every track flown from Unreal frames, 24 flights each (the same 24 randomised flights per track), next to the same 24 flights on the synthetic renderer with the synthetic-trained detector. In total 157 of 168 flights completed three laps in Unreal against 153 of 168 on the synthetic renderer: within noise of each other, so on these flights the switch to Unreal frames costs nothing measurable once the detector is fine-tuned. At 24 flights one flight is about 4 points, so per-track differences of one or two flights are noise. The video flights use a different start (seed 900002) from these 24.
| Track | Three laps | Same flights, synthetic | Crashed | Mean lap | Next gate detected in flight | Flights that did not make three laps |
|---|---|---|---|---|---|---|
| Circuit | 23 of 24 | 24 of 24 | 0 | 4.80 s | 99.94% | 1 passed no gate in 30 s, no crash |
| Clockwise | 22 of 24 | 22 of 24 | 0 | 5.00 s | 99.21% | 2 passed no gate in 30 s, no crash |
| Figure-8 | 22 of 24 | 20 of 24 | 2 | 6.85 s | 99.77% | 2 gate crashes, after 1 and 2 gates |
| Slalom | 20 of 24 | 20 of 24 | 1 | 6.71 s | 99.78% | 1 gate crash after 1 gate; 1 passed no gate in 30 s; 2 slow (5 and 11 gates in 30 s), no crash |
| Climb and dive | 23 of 24 | 23 of 24 | 1 | 5.31 s | 99.82% | 1 ground crash before the first gate |
| Sprint + hairpin | 24 of 24 | 22 of 24 | 0 | 5.72 s | 98.97% | none |
| Split-S | 23 of 24 | 22 of 24 | 1 | 4.67 s | 98.96% | 1 out of bounds after 3 gates |
Three laps = at least 18 gates passed in 30 s. "Next gate detected" is over in-flight frames where the next gate was
in view. Four of the eleven failures are flights that never passed a gate and did not crash; why they stall was not
examined. Per-flight outcomes are in results/unreal_<track>_24_flights.json.
Sim to Unreal
- Renderer. Project AirSim v1.0.1 (Unreal Engine 5), the Blocks scene with its stock look and a fixed sun. The same 320×180 camera model. It ran on 2 RTX PRO 4000 Blackwell GPUs; the MI355X could not start Unreal (missing Vulkan feature).
- Labels. The simulator's projected corners sit on the rendered gate edges to 0.01 to 0.03 px median, upright and upside down, so no camera change was needed.
- Zero-shot. The synthetic-trained detector found the next gate in 74.2% of Unreal frames on the six tracks and produced 0.54 false gates per frame. Closed loop it completed three laps in 3 of 96 flights (16 per track) and crashed in 94 to 100% per track.
- Fine-tune. Starting from E: 16k steps, half of each batch Unreal frames (90,000: random tracks and the six named ones, flown by the teacher with stick noise and off-course starts), half synthetic as before. Next gate found in 99.87% of held-out Unreal frames, 0.008 false gates per frame. The estimator and policy were not changed.
- Closed loop. Unreal is not JAX, so the loop runs on the host: physics, render, detector, estimator and policy in turn, about 16 control steps per second per flight with 4 flights per GPU. A check with synthetic frames in this host loop reproduced the JAX loop on 96 of 96 figure-8 flights.
- Result. 157 of 168 flights completed three laps (134 of 144 on the six standard tracks, 23 of 24 on the split-S), 5 crashed. Lap times are within 0.1 s of the synthetic renderer's 2,048-flight means on every standard track (for example circuit 4.80 vs 4.84 s, figure-8 6.85 vs 6.85 s).
Split-S
The split-S track has a high gate at 4.5 m and a low gate 1 m further on at 1 m, facing back. Flying it as a split-S means flipping upside down and pulling through.
- On speed reward alone, PPO never flipped. The teacher banks to about 100° and slides down (0 of 1,781 dives past 150°, 100% three laps, 4.13 s laps). A deeper version of the track did not change that, and training from scratch only learned to hover (twice, up to 9.9e8 steps).
- A reward for being inverted while heading for the low gate (0.2 per step, times how far the thrust axis points down) made it flip: 83% of 1,702 dives past 150°, 98.4% three laps, 4.23 s laps. The flip is brief, about 0.2 s near 155°, then an upright drop.
- The pipeline policy for this track was retrained from that teacher with the same reward and the noise model. On the synthetic renderer at x1: 94.9% three laps (256 flights), 84% of dives past 150°. One estimator change was needed: a gate whose plane is more than 1 m below the drone no longer counts as passed (wrong next gate during the dive dropped from 30% to 4.3% of dive steps at x1 in an open-loop check).
- In Unreal, with the detector fine-tuned on 38,000 more split-S frames: 23 of 24 three laps, 1 out-of-bounds crash after 3 gates, 4.67 s laps. 9% of flying steps were inverted. When the next gate was in view while inverted (34% of those steps) the detector found it 99.5% of the time.
What did not work
- Memory in the old camera student. A selective state-space layer on top of the 5-frame CNN, with and without an extra next-gate head, on the figure-8: 79.7% and 75.4% three laps against 78.9% for the plain CNN after the same 3 rounds (256 flights each, about 2.6 points standard error). The plain student's failures were mostly gate-frame hits, which memory does not fix.
- State-space model instead of the frame stack. One frame per step plus a 256-wide diagonal SSM, same data budget as the plain student: 0.4% and 12.1% (two seeds) against 27.7% after round 6 (256 random tracks, 20 s). Two more variants (previous + current frame; 64 states per channel) were at 0% when stopped after round 2 and 3.
- The teacher flying from estimates without retraining. 66.2% three laps at x1 with estimator v4 (88.2% with v5) against 100% from the true state. Retraining with PPO on estimates was needed.
- Estimator v4's "after-next rescue" re-initialised the gate after next on the wrong detection; v5 turns it off. A tighter rescue gate made the wrong-next-gate rate worse (5.34% vs 4.16%).
- Wider detector nets (C, F) gave nothing over their narrow twins at 40k steps.
- Training the split-S teacher from scratch only learned to hover, twice. Making the split-S deeper did not make the speed-only teacher flip.
- The detector trained on synthetic frames only, flown in Unreal: 3 of 96 three laps.
Compute and training cost
| What | Steps | Wall time | Hardware |
|---|---|---|---|
| Detector E, synthetic frames | 120k, batch 64 | about 72 min (two sessions: 47 + 24 min) | 1 × MI355X |
| Detector pilots A to F | 40k each | not all logged | MI355X and RTX PRO 4000 |
| Detector fine-tune on Unreal (B_all) | 16k, batch 64 | not logged in the files kept | 1 × MI355X |
| Detector fine-tune on split-S (C_acro) | 12k, batch 64 | not logged in the files kept | 1 × MI355X |
| Unreal frames for fine-tuning | 90,000 + 38,000 frames | about 374 frames/s open loop on 2 GPUs | 2 × RTX PRO 4000 |
| Policy, random tracks (est_rand_v5) | 2.5e9 env steps, 8,192 in parallel | 73 min | 1 × MI355X |
| Policy, split-S (est_acro_v5, ckpt_eval1) | 5.8e8 (the run stopped at 1.26e9 in 38 min) | about 17 min to ckpt_eval1 [from the run's rate] | 1 × MI355X |
| Split-S teacher with inversion reward | 1.5e9, after earlier runs it started from | 15 min | 1 × MI355X |
| Split-S teacher, speed reward only | 1.5e9 | 17 min | 1 × MI355X |
| Synthetic evaluation, 2,048 flights × 30 s | about 22 min per set (1.53 flights/s) | 1 × MI355X | |
| Unreal evaluation, 24 flights × 30 s | about 16 control steps/s per flight, 4 flights per GPU | 2 × RTX PRO 4000 |
One control step of the Unreal host loop (circuit, 4 flights per GPU, per flight): render 41.4 ms, detector 6.7 ms, estimator + policy 13.3 ms, physics 5.0 ms. Rendering is the bottleneck.
On-board cost per control step (detector + estimator + policy on one frame, batch 1): 2.18 ms median, 2.62 ms p99 on an RTX PRO 4000; 3.56 ms on an MI355X. The control period is 20 ms. A real drone's embedded GPU would be slower [not measured].
Files
| Path | Contents |
|---|---|
detector/synthetic/ckpt_best.pkl |
Detector E, synthetic frames only |
detector/unreal/ckpt_best.pkl |
Fine-tuned on Unreal frames (B_all), used on every standard track |
detector/unreal_split_s/ckpt_best.pkl |
Also fine-tuned on split-S frames (C_acro), used on the split-S |
policy/general/ckpt_latest.pkl |
Policy trained on random tracks (est_rand_v5), used on every standard track |
policy/split_s/ckpt_eval1.pkl |
Policy retrained on the split-S (est_acro_v5). The 23 of 24 result used this file |
teacher/split_s/ |
State-based split-S teacher (with the inversion reward) and the track definition |
results/unreal_<track>_24_flights.json |
The Unreal evaluation of each track (24 flights, per-flight outcomes) |
results/video_flight_<track>.json |
The record of each Unreal video flight |
figures/ |
Every chart and diagram on this page (scripts/hf_figures.py in the code repository) |
media/ |
The two main videos, the detector-view videos, the 3D video, the architecture figure |
extra/unreal/<track>/ |
Each track's Unreal video, detector view, contact sheet and path against the teacher |
extra/synthetic/ |
Synthetic-renderer videos with detections and the believed next gate drawn |
extra/detector/ |
Labels drawn on synthetic and Unreal frames; misses and false detections before and after fine-tuning |
extra/split_s_teacher_synthetic/ |
The split-S teacher with and without the inversion reward: videos, lap profiles, dive views |
The teacher for the standard tracks is in the earlier repository.
Use
from fpv.perception.detector import load_detector
detect = load_detector("detector/unreal/ckpt_best.pkl")
out = detect(frames) # frames: (N, 180, 320, 3) uint8 RGB
keep = out["conf"] >= 0.3 # (N, 6)
corners = out["corners"] # (N, 6, 4, 2) pixels
Flying the whole chain needs the code repository (Crazyflow physics, the estimator and the policy): see
scripts/eval_stage5.py for the synthetic renderer and scripts/stage6_unreal.py for Unreal.
Limits
- Simulation only. Nothing has run on a real flight controller, camera or IMU. The IMU is simulated.
- The pipeline is given the course before the flight: the nominal position and heading of each gate, in order. It is not told how the gates were shifted or where the drone is.
- Unreal numbers come from 24 flights per track in one Unreal scene with one look; a 95% interval on 20 of 24 is about 64 to 93%, on 23 of 24 about 80 to 99%.
- The split-S uses its own policy and detector fine-tune; the other tracks share one of each.
- The detector was fine-tuned on Unreal frames of the same six named tracks it is tested on (different flights and gate shifts). Random tracks were not flown closed loop in Unreal.
- The noise model was calibrated on an early detector; the policy never trained on real detector output.
- Most remaining crashes follow a wrong belief about which gate is next, usually in the first seconds of a flight. Telling the pipeline the first gate adds 6 to 10 points on the figure-8, slalom and climb-and-dive (synthetic, 512 flights each).
- The drone is a simulated Crazyflie-class quadrotor (thrust 1.9 times its weight) at about 4 to 6 m/s.













