Octobots 8938: start here
For: Octobots (team 8938) students. You need: a laptop (Windows, Mac, Linux or a Chromebook with Linux), and later the robot. Library version: robot 1’s code uses ftc-helper-lib v0.41.0, the same release the docs pages follow.
You set up your laptop, get robot 1’s code (our v1 robot), and then learn the library from it. Each
part of robot 1’s code links to the docs page that teaches it. You work in the team’s project,
octobots-2026-r1.
| Part | Steps | At the end |
|---|---|---|
| 1. Your laptop | Step 1 | Android Studio, GitHub and the tools work |
| 2. Robot 1’s code | Step 2 | the team’s code builds and runs in the simulator |
| 3. Robot 1, explained | Steps 3 to 7 | you know what each line of robot 1 does, and why |
| 4. On the robot | Steps 8 and 9 | you tune the real robot, and change the code the team’s way |
Your steps
Section titled “Your steps”Check off each step when you finish it. Your check marks stay in this browser.
- Step 1: Set up your laptop
- Step 2: Get robot 1's code
- Step 3: The five files
- Step 4: The parts
- Step 5: The buttons
- Step 6: The autos
- Step 7: The simulator and tests
- Step 8: Tune the real robot
- Step 9: Team habits
History: Robot 1’s changes: what changed in robot 1, and why. Read it when you want to know why a line is the way it is.
What the library is
Section titled “What the library is”FTC-Helper-Lib is a helper library for FTC robots in Java. A library is code that someone already wrote, so you can use it instead of writing it again.
You describe the robot in five short files. The library does the rest:
| File | What it holds |
|---|---|
Robot.java |
what is on the robot, and each part’s name on the hub |
Tunables.java |
the numbers (speeds, positions) |
Controls.java |
which button does what (it is also the TeleOp) |
Actions.java |
the steps that use several parts together |
autos/ |
what the robot does on its own (the autonomous) |
What you get from those five files:
- TeleOp controls: each part has its usual button lines. You copy them into
Controls.javaand change what you like. (Controls.java) - Safety: nothing moves in INIT, BACK pauses everything, parts stop at their limits, and the launcher feeds only when the wheel is at speed.
- Autonomous in steps: a short list like “drive off the wall, fire all, then park”, with a report at the end. (The autos)
- A simulator: your real code drives a pretend robot on the BIOBUZZ field, in a web browser. You do not need a robot. (Simulator guide)
- Finders and tuners: small programs that measure a number on the robot (a servo position, the flywheel’s speed control, the wheel size) and show the exact line to copy into your code. (Finders)
- Aim, cameras, odometry, Pedro paths: later, when a robot needs them (Add a launcher, Add odometry).
More: Set up, Cookbook (“how do I…?” answers), Build it by hand.
Still real coding, with help
Section titled “Still real coding, with help”This is real Java, in Android Studio, in the same FtcRobotController project every FTC team
uses. If you used Blocks before, From Blocks to Java shows where each
block went. You type the code, you build it, you install it on the Control Hub. Nothing is hidden: the
library’s code is in your project, and you can open any of it.
The library does the boring or hard parts for you:
- setting up each motor and servo (names, directions, encoders),
- the PID speed and position control (PID: code that keeps correcting a motor until it is where it should be),
- a launcher that waits for the wheel to be at speed before it feeds,
- the Driver Station screens (telemetry: the text the robot shows on the Driver Station).
You still decide what the robot does, which button does it, and every number. You can also
drop down to plain FTC SDK code (the normal FTC way, with hardwareMap and setPower) for one part
or the whole robot. The “Build it by hand” tutorials show how, step by step:
OpMode basics,
Motors and servos,
Tank drive,
A launcher.
Words you will meet
Section titled “Words you will meet”One line each. More: Java words and the Cookbook’s Words you will meet.
- Gradle sync: Android Studio reads the project’s build files (the
build.gradlefiles) and gets what they list. It runs when you open a project or click Sync Now. - package: the folder a Java file is in, written at its top (
package org.firstinspires.ftc.teamcode;). It must match the folder. - import: a line at the top of a file that says which library code the file uses.
- IMU: the sensor inside the Control Hub that knows which way the robot faces (its heading).
- encoder: the counter in a motor that counts how far it has turned.
- RPM: turns per minute (how fast a motor or wheel spins).
- kP, kF: the numbers of a speed control. kF gives the steady power for a speed. kP pushes harder the further the speed is off.
- profile: PRACTICE or COMPETITION, set at INIT. PRACTICE is slower and has the tuning menu.
- TODO: a note in the code: “still to do”. It stays until someone does it.
- CamelCase: words joined, each starting with a capital:
intake_deployreadsIntakeDeploy. - Gamepad buttons: START and BACK are the two small buttons in the middle of the gamepad. GUIDE is the round button between them (the logo button: Logitech or Xbox logo, PS on a PlayStation pad). The Driver Station’s own START is the big button on its screen. In the simulator, the keyboard has a key for each button (GUIDE is M): see the Keyboard row in The page.
Next: Step 1: Set up your laptop.