Skip to content
This repository has been archived by the owner on Jan 15, 2018. It is now read-only.


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

2016 Robot Code

Robot Code | UI | Image Processing | Oculus Rift

This code was used to control Team 1418's robot in 2016, during the FIRST Stronghold challenge.

The team had a historic season in 2016. They were part of the 1st place alliance at the Greater DC District competition at Battlefield High School, and then proceeded to lead the first place alliances at the Bethesda District competition and the Chesapeake Regional Championship. The team finished the stellar season by making it to quarterfinals at the World Championship in St. Louis.

Robot code features

  • Full pyfrc integration for testing & robot simulation
  • Unit tests over the robot code with 70% code coverage
  • Arcade drive system
  • Allows manipulation of arm, winch, and intake
  • Complex autonomous mode support
    • Multiple working autonomous modes used in competition
      • Charge - Drive straight forward at maximum speed for a few seconds. Used for static defenses like rock wall, ramparts, and rough terrain.
      • ChargeCamera - Drives over defense, then uses vision to score ball in low goal
      • GenericAutonomous - Basic autonomous modes to go over most defenses including low bar, portcullis, cheval, and generic charge.
      • Defense autonomous modes:
        • Cheval - Go over cheval de frise
        • LowBar - Go over low bar
        • Portcullis - Go through portcullis
      • ModularAutonomous - Automatically generated autonomous using setup built in UI
    • Automatic support for tuning autonomous mode parameters via the UI

Deploying onto the robot

The robot code is written in Python, so to run it you must install pyfrc onto the robot.

With the pyfrc library installed, you can deploy the code onto the robot by running with the following argument:

python3 deploy

This will run the unit tests and upload the code to the robot of your choice.


The robot code has full integration with pyfrc. Make sure you have pyfrc installed, and then you can use the various simulation/testing options of the code by running directly.

python3 sim

File Structure

	The robot code lives here.
        Several automatic scripts for performing common functions like shooting a ball.
        Autonomous modes.
        New robotpy components
        Management of complicated robot systems
	py.test-based unit tests that test the code and can be run via pyfrc
	Barebones code ran to make sure all of the electronics are working