Roadrunner - ftc8380/coding-guide GitHub Wiki

Introduction

If you're using a drivetrain with mecanum wheels, you'll probably be using the Roadrunner library for autonomous movement. It simplifies movement commands with a coordinate system so you can focus on things like your intake and lift.

So as not to complicate things too much, I'll show you how to install Roadrunner in a later guide, as you will often be provided with a GitHub repo that has Roadrunner installed. As a library, it's kind of an extension that latches on to the default FIRST SDK.

After installation, Roadrunner requires tuning and calibration with whatever robot it's being used on, so it can get used to the hardware it's running on and account for inconsistencies between robots. More on that soon.

Coordinate system

The coordinate system used by Roadrunner is a pretty simple one:

  • Up and right are positive, down and left are negative (just like math class)
  • The red alliance station is always at the bottom

The units are inches, and the entire field stretches from -72 to 72 in both directions.