Step 9: Team habits
At the end of this step, you know how the team changes robot 1’s code safely: one change at a time, tested, committed and pushed. You can fix a conflict, move to a new library version, and get the robot ready for an event.
The change loop
Section titled “The change loop”Use the same loop for every real change. A “Try it” mission is practice: undo it, and never commit it (Try it, then undo it).
- Pull first: get your teammates’ newest code (Keep it in sync).
- Change the code. One change at a time.
- Build (the hammer). Fix every red error.
- Check the changed part in the simulator
(Start it and drive: it remakes the
robot file from
Robot.java). Then run robot 1’s tests (Robot 1’s tests). All sayPASSED. - Install the app on the Control Hub. The robot runs only what is installed on it. Pick the Control Hub in the device list and TeamCode in the run list (it still says Simulator tests after step 4). Then click the green Run triangle.
- Check the changed part on the robot (on a block first, if it moves).
- Commit and push with a message that says what changed and why.
Git and GitHub
Section titled “Git and GitHub”The words, one line each
Section titled “The words, one line each”- Repository (repo): a project folder whose history git keeps. Ours is on GitHub:
Indianola-Robotics-Team/octobots-2026-r1(public: anyone can get it; to push, ask the mentor for write access). - Commit: a saved snapshot of your changes, with a message. You can always go back to it.
- Push: send your commits to GitHub, so the team has them.
- Pull: get the team’s newest commits from GitHub.
- Branch: a separate line of work.
mainis the robot’s code. Try ideas on a branch. - Merge: bring a branch’s commits into another branch.
- Conflict: two people changed the same lines. Git asks you which to keep.
- Submodule: a repo inside our repo. The library (
ftc-helper-lib) is one, pinned to one version.
Habits
Section titled “Habits”- Pull before you change anything, every session. Push after, before you leave.
mainalways builds and passes the tests (Robot 1’s tests). Never push broken code tomain: the next person installs it on the robot.- Try ideas on a branch (
experiment-faster-intake). Merge it intomainwhen it works on the robot. - Small commits, clear messages: what changed and why. Good:
Intake on A, fire on Y (driver's request). Bad:stuff,fix. After a robot session, name the session and what you measured:Session 1: directions, IMU, deploy servo, flywheel, feed time. - Never commit a mission. Undo it with
git restore TeamCode simulator(Try it, then undo it). - Never commit
local.properties(it has your laptop’s paths) orbuild/folders. The project’s.gitignore(the file that lists what git skips) already skips them: do not force them in. - Before an event: only tested code on
main, and no library update (A new library version).
With the command line
Section titled “With the command line”Where: the Terminal (Android Studio’s Terminal tab works), in the project folder
(octobots-2026-r1, the one with TeamCode in it; from ftc-helper-lib, cd .. goes back up).
| To… | Type |
|---|---|
| get the repo the first time, with the library | git clone --recurse-submodules https://github.com/Indianola-Robotics-Team/octobots-2026-r1.git |
| get the newest code | git pull then git submodule update |
| see what you changed | git status and git diff |
| undo a change you did not commit (a mission) | git restore TeamCode simulator |
| start a branch | git switch -c experiment-faster-intake |
| go back to main | git switch main |
| save a commit | git add TeamCode simulator then git commit -m "Intake on A, fire on Y" |
| send it to GitHub | git push (a new branch the first time: git push -u origin experiment-faster-intake) |
| bring a tested branch into main | git switch main, git pull, git merge experiment-faster-intake, git push |
A pull changes which library version the project points at. It does not change the library’s files. So
after a pull, git submodule update puts the library on the version the project uses. If you forget it,
git status says modified: ftc-helper-lib (new commits).
With GitHub Desktop
Section titled “With GitHub Desktop”GitHub Desktop is an app with buttons for the same things.
- Clone: File > Clone Repository…, the URL tab, paste
https://github.com/Indianola-Robotics-Team/octobots-2026-r1.git, choose a folder, Clone. It gets the library too. Then open that folder in Android Studio. - Pull: Fetch origin (top bar). If it then says Pull origin, click it.
- Commit: the Changes tab lists your changed files. Tick the ones to save, write a summary at the bottom left, click Commit to main (or to your branch).
- Push: Push origin (top bar).
- Branch: Current branch (top bar) > New branch, give it a name, Create branch, then
Publish branch. To go back: Current branch >
main. - Merge a tested branch: switch to
main, then Branch > Merge into current branch, pick your branch, then Push origin. - Undo a mission: in the Changes tab, right-click the file > Discard changes. In Android Studio: Git > Rollback.
- The library: if the Changes tab shows
ftc-helper-liband you did not mean to change it, use Repository > Open in Terminal and typegit submodule update.
A conflict
Section titled “A conflict”You and a teammate both changed speedRpm in Tunables.java. Git stops the pull or the merge. The file
now has both versions, between markers:
<<<<<<< HEAD public static double speedRpm = 3500; // TeleOp and autos 2-3 shot speed (auto 1 has its own; goBILDA had 2679)======= public static double speedRpm = 3450; // TeleOp and autos 2-3 shot speed (auto 1 has its own; goBILDA had 2679)>>>>>>> main- The part between
<<<<<<< HEADand=======is yours: the line on your laptop (here, 3500). - The part between
=======and>>>>>>> mainis what came from GitHub: your teammate’s line (here, 3450). After a pull, git can show a commit code on the last marker line instead ofmain.
- Talk to your teammate, and find the right number: the one the team tested on the robot.
- Keep that line. Delete the other line and the three marker lines (
<<<<<<<,=======,>>>>>>>). - Build, then run the tests (Robot 1’s tests).
- Command line:
git add TeamCode/src/main/java/org/firstinspires/ftc/teamcode/Tunables.java, thengit commit(the message is ready: save and close it). GitHub Desktop: the file shows as resolved; click Continue merge (or Commit merge).
If you are stuck, ask the mentor. Do not delete the folder and clone again: you lose your changes.
A new library version
Section titled “A new library version”The team decides when robot 1 moves to a new library version. Never move in the week before an event, and always move on a branch first. Robot 1 uses v0.41.0 now.
To move the library to a new version, read Keep the library up to date.
Before an event
Section titled “Before an event”-
mainhas only code that was tested on the robot. The library is the tested version (no update this week). - The tests pass (Robot 1’s tests). The app on the Control Hub is built from
mainas pushed. - COMPETITION profile: INIT the autonomous, set Profile: COMPETITION. INIT shows no “PRACTICE profile” warning (Profiles).
- INIT shows no “tuned values differ from the code” list: every tuned number is in
Tunables.java(Copy tuned numbers back). -
Tunables.Drive.calibrated = true. The shot angle is the filmed one, and each autonomous start spot was checked with it (Step 8: Tune the real robot). - No FTC Dashboard or FTControl Panels in the app: rule R704.D bans them at events (Tuning: practice only).
- Batteries charged and labeled. Check the voltage in the Hardware Check (over 12.5 V to start).
- One full test run: the autonomous you will use, then R1 TeleOp: drive, intake, shoot, BACK pause.
- The Driver Station’s robot configuration is the active one, with our names (Make the robot configuration).
- Safety glasses in the bag. Print the pit checklists (Before practice and matches).
Troubleshooting
Section titled “Troubleshooting”| What you see | Why | What to do |
|---|---|---|
The build says cannot find symbol |
A missing import line, or a typo in a name |
Click the red name, press Alt+Enter (Option+Enter on a Mac). Check capitals: Robot, not robot. |
The build says Project directory '.../ftc-helper-lib/library' does not exist |
The library folder is empty: the clone did not get the submodule | git submodule update --init (GitHub and the robot project) |
class, interface, or enum expected |
A second package line, or a missing } |
One package line, at the top. Count the { and }. |
| The OpMode is not on the Driver Station | The new app was not installed, or the file has @Disabled |
Click Run again (TeamCode); delete @Disabled |
| INIT stops with a list of names | A name in Robot.java is not in the robot configuration |
Fix the name in Configure Robot or in Robot.java (Make the robot configuration). Capitals count. |
INIT stops with a Tunables message |
A misspelled setting name in Tunables.java (like maxPowr) |
Fix the name the message shows |
| One motor turns backward | Its direction is wrong | .reversed(...) in Robot.java (the Motor Direction Check, Step 8) |
| The robot spins when it should go straight | One drive side is reversed wrongly | Run Tune and check > Motor Direction Check on a block |
| Stick up drives backward | Every wheel is flipped | .reversed("front_right", "back_right") in Robot.java (the right side instead of the left) |
| Stick up drives the intake end first | The hub still has the drive names from before 2026-11-04 (when the intake was the front) | Swap the four drive names in Configure Robot (Make the robot configuration), then Tune and check > Motor Direction Check |
| It slides at an angle when it should strafe | Two motor names swapped in Drive.mecanum(...), or a wheel on the wrong corner |
Order: front left, front right, back left, back right |
| The deploy servo hums or hits the frame | Its positions are guesses | Stop. Tune and check > Servo Finder (Step 8) |
| The intake does not fall at START | deployed is too short, or the servo is too weak |
Servo Finder again; press X to deploy again; the Torque servo |
| The flywheel never gets to speed (RB does not fire) | kF too low, a low battery, or speedRpm above what the motor can do |
Flywheel Finder (Step 8); a charged battery |
| Two pieces fired at once | The feed wheels run too long (Tunables.Feeder.feedSec), or stopOnShot is false |
stopOnShot = true; the Feed Time Finder (Step 8) |
| The autonomous does not move: “AUTONOMOUS IS OFF” | Tunables.Drive.calibrated is false |
The Drive Tuner, then set it true (Step 8) |
| The autonomous report says a step was “stopped: … taken by …” | Two actions used the same part at the same time | One part, one owner: see Step 6: The autos |
| Everything stopped and will not move | It is paused | Tap BACK |
| Slow even without LT | PRACTICE profile (practiceMaxPower), or maxPower is low |
Check the profile and Tunables.Drive |
| A number is back to its old value after an install | It was tuned on the hub but not copied to Tunables.java |
Copy tuned numbers back |
./gradlew says JAVA_HOME is not set |
A new Terminal | Set JAVA_HOME again (The Terminal) |
| The simulator page does not open | It is still building, or another one runs on port 8780 | Wait for Open http://localhost:8780; stop the other one (Ctrl+C), or add -Pport=8781 |
| The simulator still has the old robot | robot.properties was not remade |
Stop the simulator and run it again (it remakes the file) |
git pull says your changes would be overwritten |
You have changes that are not committed | A mission: undo it (git restore TeamCode simulator). A real change: commit it. Then pull again |
CONFLICT after a pull or merge |
You and a teammate changed the same lines | A conflict |
git status says ftc-helper-lib (new commits) |
The library folder is on another version than the project | git submodule update |
More: the library’s Troubleshooting page. When you are still stuck, write down what you did and the exact message, and ask the mentor.
Done when
Section titled “Done when”- You pull before each session and push after it.
- Every real change went through the change loop, and no mission was committed.
- Every number you measure on the robot is in
Tunables.java, committed.
Next: Octobots 8938: start here.