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.

Procyon, a red and white F450 quadcopter with black propellers, standing on a carpet

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.

1 · Stop Above ArmClimb to 2 m.
2 · Ballet Move5 m forward, spinning at 45°/s.
3 · Hypotenuse MoveDiagonal back up to 7 m, spinning.
4 · Déjà Vu DescentDown to 2 m.
5 · Fire HoleVertical circle, 3 m radius, 30 waypoints.
6 · Lord Has FallenLand, disarm.

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.

Simulated from the mission code; the 2020 flight logs are gone.

gnd.package

  1. {'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.

Telemetry as DCSP would carry it.

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.

Procyon, a red F450 quadcopter, beside a laptop running ArduPilot's Mission Planner and its radio transmitter
Procyon and Mission Planner 2020
Two hands holding up Procyon, its motor lights glowing red
Procyon, powered up 2020
Procyon on the floor during the build, propellers off, the transmitter beside it
Procyon during the build 2020