Projects

FTC DECODE · 2025–2026

Cupid

A competition robot built to sort and shoot on the move.

3D model

3D CAD

Loading CAD…

Drag to orbit. Scroll or pinch to zoom.

State estimation

The match code uses a goBILDA Pinpoint localizer with two tracking pods. The field pose drives the autonomous path follower and gives the turret a heading reference.

Our regionals design notes also describe a Kalman filter for autonomous localization. A motion model predicts the next state, then the filter corrects it by how far the measurement is from that prediction.

K=P−HT (HP−HT+R)−1 x^+= x^−+K(z−Hx^−)

In this linearized update, P− is the predicted covariance, R is measurement noise covariance, and H maps the state into measurement space. The gain K determines how much the estimate moves toward the new reading z.

The corrected estimate lies between the prediction and the measurement, with a narrower uncertainty curve than either input.
A scalar Kalman update, redrawn from the regionals poster. A narrower curve indicates lower uncertainty.

Shooting on the move

A game piece leaves the flywheel with both its launch velocity and the chassis velocity. In the field frame, the horizontal correction subtracts chassis motion from the velocity the piece needs. The vertical model relates flight time t to the height difference Δz under gravity g.

vlaunch=vfield−vchassis Δz=vzt−12gt2

On the robot, a fitted range-to-RPM curve and a hood lookup table set the shot. An encoder-based velocity PID loop adds feedforward to hold the flywheel near its setpoint through a burst.

Two servos turn the geared turret. Six bearing-stack modules support its rotation, and a cutout in the turret gear lets the shooter sit lower, shortening the feed path to the flywheel.

Assembled shooter showing the flywheel and curved hood mounted in the robot.
The flywheel and adjustable hood sit inside the turret plate.
A field-view diagram sits beside a plot of the game piece’s curved flight path.
Field geometry and a modeled shot from the regionals portfolio.

Field vision

An OpenCV prototype used the Hough circle transform to find partly obscured game pieces. In autonomous, the zone detector bins purple and green centers into six regions. It scores neighboring pairs and selects the window with the most pieces.

i∗= arg max1≤i≤5 (ni+ni+1)

ni counts detections centered in region i.

Camera view of purple and green game pieces, with colored field regions and detection overlays.
Camera detections and region boundaries on the practice field.

Passive spindexer

The three-slot wheel sorts in one direction and feeds in the other. Angled guides pinch each piece against a one-way flap and lift it toward the flywheel. In reverse, the flap swings clear for sorting.

The sorting algorithm ranks the three cyclic rotations against the requested color pattern. A finite-state controller handles intake, staging, and feeding, with distance sensors checking which slots are occupied.

Top-down view of the spindexer holding two purple game pieces and one green game piece.
Three game pieces loaded in the spindexer.
The spindexer feeds the flywheel, then the camera follows the game pieces into the goal.

Results

Our regionals materials report sorting in under 0.2 s and firing three pieces in about 0.25 s.