Real-time web app

Drone ground control

A pilot opens a web page on a phone or computer and flies an ExpressLRS drone, with no handheld transmitter. A Raspberry Pi turns the page’s commands into radio frames in real time and serves the live video to several viewers.

Role
Lead developer on a university capstone team
Year
2026
Source
View on GitHub

How it works

  1. Pilotphone or computer
  2. Web apptouch and keyboard
  3. GatewayNode.js, WebSocket
  4. Real-time coreC, isolated CPU
  5. ELRS radioUSB transmitter
  6. Dronein line of sight
Stick movements leave the browser over a WebSocket, cross the gateway to a real-time C program, and go out over the radio as control frames.

300 ms

of silence from the pilot, gateway or browser triggers the failsafe

< 1 s

target to detect and respond to a failure on any link

3

layers under test: C core, gateway, and a headless browser end to end

A closer look

  1. Disarmedthrottle at zero, then press and hold
  2. Armedno fresh command for 300 ms
  3. Failsafehold for 2 s to clear
  4. Disarmed again
The safety rules live in the real-time core, not the web page. If the page, the gateway or the network stalls, the core stops hearing fresh commands and treats that as a failsafe.

The problem

Flying a drone normally needs a dedicated handheld transmitter. The goal was to replace it with a web page anyone can open, without ever letting a slow network or a busy video stream put the aircraft at risk.

What we built

Three pieces that each do one job: a pilot page with no build step, a gateway that speaks HTTPS and WebSocket, and a small C program that owns the radio and runs on its own CPU core so video can never starve control.

  • Arming needs zero throttle and a deliberate press-and-hold.
  • Losing the pilot, the gateway or the browser’s focus triggers a failsafe that only an explicit acknowledgement clears.
  • Live video is served to two or more local viewers over WebRTC.
  • An experimental relay extends control over the internet.

Tested without a drone

The C code is tested against a fake radio module on a pseudo-terminal, and an end-to-end test drives a headless browser through the gateway into the core. Most bugs are caught at a desk with the propellers off.

Built with

  • JavaScript
  • Node.js
  • WebSocket
  • C
  • WebRTC
  • Raspberry Pi
  • systemd

Need something like Drone ground control?

Tell me what you need in a few lines. You get a real reply from me, not an automated one.

Start a project