Engineering details Vision, control & flight testing
- Merged person detection and pose into one TensorRT pass, raising replay throughput from 38.6 to 58.7 FPS
- Added a Smith predictor to the camera tilt loop after measuring its delay from flight logs
- Built closed-loop tilt, yaw, and follow simulations around the real controllers, backed by ~1,400 tests
- Found the deployed pose engine was slower than the benchmarked build and rebuilt it at TensorRT level 5: 8.1 to 6.5 ms per inference, GPU load 43% to 34%
- Moved overlay drawing out of the 1080p recorder into a per-frame data file and render tool, cutting dropped frames from 67 to 2 on a replay clip
The drone runs its whole perception and control loop on a Jetson Orin Nano. A pan-tilt-zoom camera feeds DeepStream, where one YOLO26s-pose pass on TensorRT finds people and their 17 body keypoints, and an NvDCF tracker with ReID embeddings keeps a persistent ID on the pilot. MediaPipe reads hand gestures from the locked person, and a command router turns gestures into MAVLink velocity commands for a Pixhawk 6C running ArduCopter. Movement is only sent in GUIDED mode, so switching modes on the radio takes control back.
The control loops were tuned from measurements. Every frame's pipeline timestamps, every tilt write, and the drone's attitude are logged, so a recording lines up with the flight log. That showed the camera tilt loop had a quarter to half a second of delay, which made faster settings hunt. A Smith predictor that subtracts tilt already commanded but not yet visible let the tilt run twice as fast, and off-centre framing fell from 5.3% to 1.3–3.4% of frames over four flights. Closed-loop simulations of tilt, yaw, and follow run the drone's own controllers against measured delays before a change is flown.
Nsight Systems profiling drove the pipeline work: one pose-model pass replaced a segmentation pass plus a pose pass per person (38.6 to 58.7 FPS on a fixed replay clip), and in flight a frame now reaches the tilt decision in 35–43 ms instead of 202 ms. Rebuilding the pose engine at TensorRT optimization level 5 then cut the stream's GPU load from 43% to 34% with essentially the same detections. Recordings are now saved clean at 1080p 30 FPS with a per-frame data file, and overlays (a presentation style, or one with a debug telemetry layer) are rendered afterwards, putting each hand result on the frame it came from. Voice control through a local LLM works in a first version; an iOS app with Meta smart glasses is next.