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.
How it works
- Pilotphone or computer
- Web apptouch and keyboard
- GatewayNode.js, WebSocket
- Real-time coreC, isolated CPU
- ELRS radioUSB transmitter
- Dronein line of sight
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
- Disarmedthrottle at zero, then press and hold
- Armedno fresh command for 300 ms
- Failsafehold for 2 s to clear
- Disarmed again
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