All Classes and Interfaces

Class
Description
Steps that use several parts together, written once (in Actions.java) and started by a button in TeleOp or used as a step in an autonomous.
Where the goal is, for everything that aims: the camera first, the odometry as a backup.
Where the goal's direction and distance come from now.
How far along the aim is, for the Driver Station line, lights or a buzz: each stage includes the ones before.
Turns a camera target into a turn power, safely: no target, an old picture, or no bearing all give 0 (the robot never turns toward a target it cannot see now).
Buzzes the gamepad when an error is small, for example when the robot is aimed at a target.
Finds the camera offset for aiming: where the target sits in the camera's view when the LAUNCHER points straight at it.
Red or blue.
Anything that goes to an angle and can say when it is there: a servo with degrees set up (PositionServo), a launcher's hood on a servo or a motor with an encoder (robot.Hood), or your own part (a CR servo with an absolute encoder).
Angle helpers, in degrees.
An arm that swings on one motor (or two, one at each end of its shaft: MotorPositions.alsoMotor(java.lang.String)), with named angles in degrees.
One autonomous, in one short file: the list of Steps.
What a running AutoStep can use.
Autonomous moves for a mecanum OR standard (tank) robot, using the wheel encoders and the IMU.
How a move ended.
Tuning for AutoDrive (autonomous encoder and IMU moves).
An autonomous written as a list of named steps.
One step of an autonomous routine: "drive 24 inches", "raise the lift", "wait 1 second".
Runs slow jobs (a network request, a camera setting) on a separate thread, so the robot's loop never waits for them.
Makes sensor and encoder reads much faster with "bulk reads".
The names printed on the driver's own controller, for the Driver Station screen: A, B, X, Y on a Logitech or Xbox controller, and ×, ○, □, △ on a PlayStation-style one (PS4, PS5, Etpark).
The kind of names a controller has printed on it.
A camera that finds AprilTags: a Limelight 3A, a webcam or a HuskyLens.
ALPHA. The standing test for the camera fix (cameraFix(camera) in Robot.java): it finds turnDegBlue / turnDegRed, the turn from the Limelight's field frame to ours, and shows where the camera puts the robot, so you can check it against a tape measure.
ALPHA, NOT TESTED ON A ROBOT. Corrects the odometry's x and y with the field position a Limelight works out from AprilTags (MegaTag2).
What one picture did: the correction to add (0, 0 when refused) and the words for the debug line.
The settings, all from Tunables.CameraFix.
Turns what a TILTED camera measures into what a LEVEL one would: the bearing along the floor and the distance along the floor.
The math behind the Characterizer: from a log of power, battery voltage and speed, it finds the motor's feedforward numbers (see control/Feedforward): power = kS x sign(speed) + kV x speed + kA x acceleration (+ kG for a lift).
One fit.
Measures how the real robot moves, so the simulator (and your code) can use real numbers: for the drivetrain, each lift or arm, and each flywheel, it finds the feedforward numbers (kS = power to start moving, kV = power per speed, kA = power per speeding-up, kG = power to hold a lift) and how fast a flywheel coasts down.
A lift, arm or flywheel to measure.
A list on the Driver Station to choose from with the D-pad (for example every servo in the configuration).
A claw on one servo: open and closed, plus any other positions you name.
Connects gamepad buttons to robot actions in one place.
Gamepad buttons.
Which gamepad: G1 = gamepad1 (usually the driver), G2 = gamepad2 (usually the operator).
The two analog triggers.
The team's TeleOp and button map in one file, Controls.java.
Odometry from dead wheels: unpowered omni wheels ("pods") on encoder ports.
Where the modules find their motors, servos and sensors by configuration name.
The math that turns stick values into left and right powers for a standard (tank) drive.
Keeps camera glitches out of a distance (for example the launcher's speed from the distance).
The drivetrain in Robot.java: mecanum or standard (tank), its motor names, the motor and wheel, and how the Control Hub is mounted (for the IMU, the turn sensor).
The drivetrain type, the motor names and directions, and a power limit.
The kind of drivetrain.
Standard TeleOp driving from one gamepad, for mecanum AND standard (tank) robots, in one line per loop.
Which way the robot faces compared with the DRIVER, for field-centric driving.
Finds the autonomous drive numbers in RobotSettings.auto(): the wheel size and (mecanum) the strafe correction.
The easiest way to write an autonomous: fill in a few methods, and list your steps.
A whole TeleOp where you only write what is special about YOUR robot: its mechanisms, the operator's buttons, and any extra screen lines.
Encoder Check: finds an encoder cable in the wrong port, or missing.
One motor of your robot as the Encoder Check sees it: its name, the direction Robot.java gives it, which way to push it, the motors that always get the same power (a lift's second motor), and whether the library reads its encoder.
One ready-made thing the library can do for this robot (see RobotDefinition.features()): an autonomous step or action ("Fire 2", "Aim at the goal"), a TeleOp toggle ("aim mode"), or something it does by itself ("the Goal line on the Driver Station").
Where it is used.
Pushes ONE game piece into the launcher when asked.
The power a motor needs for a speed, worked out from how the motor behaves ("feedforward"), instead of waiting for an error to build up like a PID does.
Finds a launcher's feed stop positions (Launcher.feedStop("feed_stop") in Robot.java): where it holds the pieces back, and where it lets one through.
A test shot for the Feed Stop Finder: it spins the wheel, opens the feed stop like a real shot (the indexer and the pushing parts too), and measures how long the piece takes to reach the wheel.
Finds how long a launcher's feeder must run per shot (feedSec), for a feeder that runs for a time: a CR servo or a motor (Launcher.feeder(Indexer.crServo("feeder")) in Robot.java), with no feed stop.
A test shot for the Feed Time Finder: it spins the wheel, runs the feeder (a CR servo or a motor) at its power, and measures how long the piece takes to reach the wheel.
The places on the field the robot must not drive through, and how to get around them: your own "keep-out" boxes, in Robot.java.
Where the robot is on the field: x and y in inches, heading in degrees (counterclockwise is positive, like the IMU).
The arithmetic behind the finders, kept apart so it can be tested on a laptop.
The shared frame of every finder: INIT, a loop that never waits, the "copy into your code" lines, saving them to the results file, and stopping everything at the end (even after an error).
What a finder found, as lines of code ready to copy.
A flywheel (shooter wheel) that holds a speed in RPM, says when it is ready, and notices shots.
Finds a flywheel's speed-control numbers.
A ready-made "check every part" OpMode.
A launcher's hood: the part that tilts to make the shot leave steeper or flatter.
Finds a launcher hood's calibration for Tunables.Hood: the servo position (or encoder ticks) at its two hard stops (posA, posB), and if you measure them, the hood's angle there (angleA, angleB) and at points in between (a calibration table, for a linkage that is not a straight line).
Runs a finder (or the Hardware Check) inside another OpMode: "Tune and check" (TuneAndCheckOpMode).
A DFRobot HuskyLens: a small camera with its own screen, plugged into an I2C sensor port of a hub.
What the camera looks for.
Gets devices from the robot configuration, with clear error messages.
Starts the IMU (the hub's built-in turn sensor) in one line, and reads the heading.
Feeds ONE game piece at a time into a launcher: a servo that pushes, a CR servo or a motor that runs for a moment.
A menu for the INIT screen: choose alliance, start delay, route and more with the gamepad, before pressing START.
A mistake found at INIT, shown as plain lines on the Driver Station.
The OpMode's body, which may stop with an error.
A roller that pulls game pieces in (and pushes them out): one motor, or one or more continuous rotation (CR) servos.
An interlock rule: two parts that must never be in the same space at the same time.
Tells when a motor is jammed: it is asked to spin but barely turns (or draws too much current) for a while.
One button or trigger on one gamepad, e.g.
Joins a flywheel, a feeder, and optionally a hood, a shot table and any "ready" checks into one shooter: spin up, wait until everything is ready, feed, repeat.
A flywheel launcher: a motor that spins a wheel to a speed, and an Indexer that feeds one piece at a time once the speed is right.
How strict the launcher is before it feeds a piece.
What the launcher is doing (for telemetry).
Where the library's own TeleOp jobs are on the gamepads: driving, pause, slow, field-centric, the button map, the tuning menu, "set pose here" and "switch alliance" (off unless you turn it on).
The library's jobs, with the words the button map shows.
A lift (a slide that goes up and down) on one motor (or two: MotorPositions.alsoMotor(java.lang.String)), with named heights and an optional bottom switch.
The colors a Lights module can show.
Tries a few camera settings one after the other, counts how many pictures see AprilTags with each, and keeps the best one.
A colored light the drivers can see: green when the launcher is ready to fire, orange blinking when it is jammed, a white flash when a shot goes, yellow in the last 20 seconds.
AprilTags with a Limelight 3A.
ALPHA (the camera fix, CameraPoseFix): the robot's field position the Limelight worked out from the tags in one picture, in the Limelight's field frame (inches, degrees).
Measures how fast your OpMode loop runs.
Remembers what autonomous knew, for TeleOp: the alliance and the robot's pose.
Counts down a match period and runs "cues" at set times, for example a gamepad buzz with 20 seconds left, so drivers do not have to watch the field clock.
Small math helpers that robot code needs all the time.
Drives a four-wheel mecanum chassis.
The math that turns "forward, right, turn" into four mecanum wheel powers.
A rule a module follows every loop while it is on: a turret following the target, a launcher setting its speed from the distance.
One kind of mechanism in Robot.java: an Intake, a Lift, a Claw...
Speed-profile math for autonomous moves.
Motor Direction Check: spins ONE drive motor at a time, set up exactly as Robot.java says (its direction, from reversed(...)), so you see if each wheel rolls FORWARD.
A feeder driven by a motor (a roller, belt or indexer wheel): runs for a set time per piece, or until a sensor sees the piece leave.
Finds a motor mechanism's numbers (a lift, an arm, a turret): its limits in encoder counts, the positions you want, and its top speed.
What Lift and Arm share: a motor that goes to named positions and holds them (a PositionMotor inside), with its numbers from Tunables.java.
Encoder counts per turn and top speed of the common FTC motors, by the same ids as the simulator's parts catalog (sim/parts/parts.json, docs/guides/parts-catalog.md): "gobilda-5203-312", "rev-hd-hex-20"...
One motor: encoder counts per output-shaft turn, and its free (no-load) speed in RPM.
Sets up a motor in one readable chain.
Measures how exactly the autonomous moves stop and the turns end, and suggests the numbers in Tunables.Drive (or RobotSettings.auto()).
The math for shooting while the robot drives and turns.
What MovingShot.solve(double, double, double, double, double, double) gives: where to aim, how far to shoot, and how big the lead is.
The step size for nudging a servo in a finder: D-pad up/down moves the servo by the step, D-pad left/right makes the step smaller/bigger.
The robot's odometry, one line in Robot.java: what tells the robot where it is on the field.
Checks and measures the odometry of the robot in five files (docs: Add odometry): which way each pod counts, how far it measures, and where the pods sit (the offsets).
Odometry from a SparkFun OTOS (Optical Tracking Odometry Sensor): a camera-like sensor under the robot that watches the floor move, with its own IMU.
One gamepad in Controls.java: every button and stick, by name.
One button or trigger.
One stick direction: up and right are +, from -1 to 1.
The wheels and rollers (and the servos' turn and pulse range) of the simulator's parts catalog (sim/parts/parts.json, docs/guides/parts-catalog.md), by the same ids: "gobilda-hogback-96", "offset-tubing-90"...
One servo: how far it turns and over which pulse.
One wheel or roller: its size in millimeters.
Something to start at a place ALONG a path, while the robot keeps driving: spin up the launcher 12 in before the end, start the intake halfway, stop it where part 2 of the path starts.
Something to do once while a path or a driveTo runs, when the robot gets to a place along it: "spin up the launcher 12 in before the end".
Where the robot is along the path, worked out every loop (read-only).
A path follower from another library (Pedro Pathing, through the ftc-helper-lib "pedro" module), plugged into the robot in five files: follower(Pedro.follower(...)) in Robot.java, then s.follow("To the goal", path) in an autonomous.
Makes the follower at INIT, from the robot's devices (after its drive and odometry are set up).
A path that another library drives (Pedro Pathing, through the pedro module), as one autonomous step: AutoRoutine.followPath(java.lang.String, com.crossbotics.ftchelper.auto.PathJob, double).
A PID controller: it works out how much power to give so a value reaches a target.
The four PID gains of one controller as Tunables, in one line.
Counts the game pieces the robot holds and knows the kind of the NEXT one to fire.
A sensor that looks at ONE spot (the intake's mouth, or the "ready to fire" slot) and says which game piece is there: one of your kinds ("POLLEN"), Pieces.UNKNOWN (a piece, but not one it knows), or Pieces.NONE.
The Piece Tuner: shows what each PieceSensor of your robot reads, and measures the numbers it needs.
Odometry from a goBILDA Pinpoint: a small computer on an I2C port that reads two odometry pods and its own IMU and works out the pose itself, about 1500 times a second.
Passes the robot's last pose from Autonomous to TeleOp.
Where the robot is on the field, from odometry: small wheels ("pods") or a sensor that measure how far the robot moved.
Any servo with named positions: a deploy servo, a fold-out pivot, a gate, a flag.
A motor that moves something to named positions and holds it there: a lift, an arm, a slide, a motor-driven claw.
A normal (positional) servo with named positions: a claw, a wrist, a hood, a gate.
A pretend clock for JUnit tests: the time only moves when your test says so.
A pretend continuous-rotation (CR) servo for JUnit tests: it remembers the power it was sent.
A pretend robot configuration for JUnit tests on a laptop: give it to your Robot instead of the hardwareMap, and every motor, servo and switch it asks for is made on the spot.
A pretend motor for JUnit tests on a laptop (no robot): it remembers the power it was sent, and its encoder is a number your test sets.
A pretend goBILDA Pinpoint (odometry computer) for JUnit tests: it says the robot is where your test puts it.
A pretend servo for JUnit tests: it remembers the position it was sent (NaN = none yet, like a real servo before its first command).
A pretend Driver Station screen for JUnit tests: it keeps the last screen sent, one line per entry ("Lift : high 900 ticks", "!! warning").
Practice or competition.
A "drive backwards" mode: when ON, forward and strafe are flipped, so the back of the robot acts as the front.
The robot's drivetrain described ONCE: motor names and directions, autonomous tuning, and how the Control Hub is mounted.
What is on the robot, written once in the team's Robot.java: the drive and one line per mechanism, with each part's name in the robot configuration.
Telemetry with two levels: STANDARD lines for the drivers, DEBUG lines for programmers.
Drives a route of field points, one loop at a time.
Says if a straight line on the field is clear.
How a route ended.
A motor that cannot be driven past its safe range.
A feeder driven by a servo (a kicker or pusher arm): push, wait, come back, wait.
Finds a servo's numbers: its safe ends (limits) and the positions you want (open, closed, ...).
What Claw, Wrist and Positioner share: a servo with named positions (a PositionServo inside).
Sets up a servo in one readable chain.
A small settings file on the Control Hub, so choices and tuned numbers survive a restart.
How a part looks and where it sits, for the simulator's 3D view and its size checks: written in Robot.java next to the part, so the simulator robot file comes from the code (./gradlew :sim:fromRobot).
The good shots saved in the shot tuner: distance, speed and (if there is a hood) hood angle, with how many went in and the flywheel speed really measured at the shots.
The distance averaged over the last ShotPoints.DistanceAverage.WINDOW_SEC seconds of fresh readings, so one noisy camera frame does not go into the table.
One saved point: the shot, and what the tuner saw while testing it.
Hits and shots at each speed (and hood angle) tried at ONE spot, the way teams tune: shoot 3-5 at a speed, mark each HIT or MISS, try the next speed, and keep the speed with the best hit ratio (hits / shots: 3 in out of 4 = 3/4).
The Shot Tuner's shots at one spot: each shot fired waits to be marked HIT or MISS, and keeps the speed, hood angle and distance it was FIRED with (not what the screen says when you mark it).
Firing stats: what each fed piece did to the flywheel, for tuning the shot modes.
One fed piece.
Turns a distance into a shot: flywheel RPM and hood angle.
One shot setting: at distance (inches), spin to rpm with the hood at hoodDeg degrees.
Builds the shot table: the flywheel speed (and hood angle) for each distance.
Stops a value from changing too fast.
The rule that keeps a mechanism inside its safe range.
"Did you mean ...?" for names typed by hand: a position name, a Tunables field.
A motor that spins: an intake, a roller, a conveyor, a spinner.
What it is doing.
A continuous-rotation servo (it spins like a small motor): a roller, a spinner, a small intake.
Tells when a move is stuck: the distance left has not gone down enough for a while.
Two words you can write in Tunables.java in place of a number you do not know yet, so every setting is in the file from the first day and the file says which ones are still to do.
The steps of one autonomous, read top to bottom (see Auto).
Helpers that make sticks and triggers feel good to drive with.
One part of the robot (a lift, a claw, an intake, a launcher) that needs a little work every loop.
A group of Subsystems that are updated, stopped and shown together.
A group of AprilTags in a row that mark one target (BIOBUZZ: the 4 tags under each CELL), so a camera can report the GROUP as one target with one aiming point, even when it sees only some of the tags.
Drives a standard (tank / differential) chassis with 2 or 4 motors.
One target the camera sees, in the same form for every camera (webcam or Limelight).
A camera that finds targets.
Shortcuts for clear, same-every-time Driver Station telemetry.
The library's clock: the time now, in nanoseconds.
Something one button switches on and off: an Intake, a Launcher's spin, a Claw, or a Mode.
Buzzes the gamepad to confirm a toggle, so the driver knows without looking: two buzzes = ON, one buzz = OFF.
A number you can change while the robot runs, from the gamepad (TuningMenu), without rebuilding.
"Tune and check": every check and finder for your robot in one OpMode, always on the Driver Station (TeleOp list, group "Finders").
A menu on the Driver Station to change Tunable numbers with a gamepad, while the robot runs.
A turret: turns to an angle in degrees, never past its limits (so cables never wind up), and can hold a FIELD direction while the robot drives and turns.
A turret that turns inside its limits (or round and round, with a slip ring), by hand or following the goal with a Camera or the odometry.
AprilTags with a USB webcam, using the FTC SDK's own AprilTag finder (SDK 12: single tags and tag "clusters", groups of tags with one aiming point).
A wrist on one servo, with named angles (raw servo positions).
One side of an interlock rule (Interlock): the space one part must not be in while the other part is in its own zone.