Procyon autonomous drone, 2020
A drone mission I wrote for the autopilot category of ODTÜ Robot Days 2020, a robotics competition at METU. I added a custom flight mode to ArduCopter, the open-source autopilot, running on an 8-bit flight controller. Switched on, it remembers which way it faces, flies six moves relative to that, and lands itself.
The mission
Scroll through the six stages and the simulation follows. The stage names are the ones from my 2020 code; the timing comes from its speed settings.
Safety: one switch starts the mission, another brings it home. Failsafes trigger if it loses its link to the ground station or its GPS. Speed is capped at 30 cm/s.
- time
- 2:02.8 simulated
- heading
- 45°/s in stages 2–5
- target
- 30 waypoints in stage 5
Planned path, side view: from the arm point up 2 m; 5 m forward; a diagonal back over the arm point up to 7 m; down to 2 m; a vertical circle of 3 m radius through 30 waypoints, peaking at 8 m; then straight down to land.
gnd.package
- {'t': 0.0, 'stage': 'StopAboveArm', 'x': 0, 'y': 0, 'z': 0, 'heading': 0}
gnd.frame
DCSP: the small protocol I wrote to stream drone data to the ground. x, y, z: cm from the arm point. heading: degrees from the arm bearing.
DCSP
A small protocol I wrote to stream a drone’s live video and sensor readings to a computer on the ground, built on ZeroMQ, a messaging library. Written before Procyon, and used for a while on its line-following sister drone.
The sibling: a line-following drone, 2019
Built for another category of the same competition, and never finished for it. The flight controller’s 8-bit chip couldn’t process camera images, and a faster one was out of budget. So a Raspberry Pi ran the vision (OpenCV), and an Arduino turned its steering into radio-control signals, flying the drone the way a pilot would. A switch handed control over; transistors let the pilot take it back.