KESTREL - UAV Flight Control
1. the problem
Legacy ground control stations (such as QGroundControl and Mission Planner) run monolithic Qt/C++ or 1.2 GB Electron runtimes where 1080p video decoding, high-rate telemetry, and vector maps share process threads. A video stall or garbage-collection pause during landing can freeze vehicle telemetry: decoupling flight-critical MAVLink communications from presentation via a 4-tier process topology in Rust and Tauri v2.
ROLE: Non-blocking serial (FTDI/CP210x), UDP (14550), and TCP (5760) asynchronous workers running on dedicated Tokio runtime threads.
2. what i built
High-reliability UAV ground control systems architecture in Rust, Tokio, and Tauri v2:
3. problems i had to crack
Click card to view root cause & code diffLegacy Electron and Qt GCS architectures serialize full JSON trees across IPC at 50 Hz, triggering severe garbage-collection pauses (60-120 ms) and UI micro-stutters during landing. Fix: Replaced JSON IPC with a packed flat-binary float buffer streamed into a lock-free ring buffer.
In monolithic GCS apps, 1080p H.264 video decoding stalls the main process thread, delaying safety-critical heartbeat processing and triggering false Failsafe RTL triggers. Fix: Isolated video into an independent MediaMTX sidecar communicating via local WHEP/WebRTC.
PX4 and ArduPilot encode flight modes into conflicting custom mode bits inside MAVLink heartbeat packets, causing erratic mode switches when switching drones. Fix: Built a normalized Rust abstraction layer mapping raw bitmasks into canonical FlightMode states.
When RF or USB telemetry drops mid-flight, naive command queues buffer takeoff or arm commands and replay them upon reconnection, causing hazardous unexpected vehicle reactions. Fix: Implemented a 2-phase verification engine with 2.5s watchdog timeouts and zero command replay.
FLIGHT SYSTEMS ARCHITECTURE. Verified via Dockerized PX4 & ArduPilot SITL simulation environments.
| PROJECT | KESTREL // GCS |
| DRAWN BY | BIDYA B. NANDA |
| STATUS | UNDER DEVELOPMENT // FLIGHT SYSTEMS |