Step 8: Tune the real robot
At the end of this step, you know the plan for the first robot sessions, each tool robot 1 uses, and which
of robot 1’s numbers are measured and which are still to do. You also know how a number tuned on the robot
gets back into Tunables.java.
Missions: try each change in the team’s code, check it in the simulator, then put it back (Try it, then undo it). Never commit a mission.
Checks: robot 1’s tests are in simulator/scenarios/. Only the real robot can check the numbers
themselves. Run one test:
Where: the Terminal, in the ftc-helper-lib folder inside octobots-2026-r1.
./gradlew :sim:scenario -Pfile=../simulator/scenarios/r1-tune-menu.simPut the test’s file name in place of r1-tune-menu.sim. To run all of them, use the Simulator tests
button.
Robot 1’s numbers now:
| Number | Where | Found with | Now |
|---|---|---|---|
deploy servo stowed, deployed |
Tunables.IntakeDeploy |
Servo Finder | 0.64, 0.5 |
feed wheels feedSec |
Tunables.Feeder |
Feed Time Finder | the library’s 0.4: still to do |
stopOnShot |
Tunables.Feeder |
a team choice | true |
flywheel kP, kF |
Tunables.Launcher |
goBILDA’s tested numbers | 40, 12.5. The Flywheel Finder is still to do |
shot speed speedRpm |
Tunables.Launcher |
test shots from the usual spot | 3450 |
| wheel size | .wheelMm(...) in Robot.java |
Drive Tuner, 2026-11-06, power 0.5 | 108.9 |
strafeCorrection |
Tunables.Drive |
Drive Tuner, power 0.5 | 1.115 |
calibrated |
Tunables.Drive |
Drive Tuner | true |
| the Move Tuner’s lines | Tunables.Drive |
Move Tuner | all DEFAULT: still to do |
| the IMU’s mount | .imu(...) in Robot.java |
look at the Control Hub | a TODO still says to check it |
Robot 1’s Tune and check menu
Section titled “Robot 1’s Tune and check menu”Robot 1’s code: robot 1 has no file for it. The library adds the Tune and check OpMode by itself,
with the tools that fit Robot.java:
* Tune on the robot with the tuning menu (PRACTICE profile: INIT, START, then hold GUIDE on gamepad 1 * for 1 s): INIT lists every value that differs from this file, ready to copy back. This file stays the * record. The finders ("Tune and check", in the "Finders" group on the Driver Station) measure * the numbers and show the lines to copy here.Learn it: Before you tune: the Tune and check OpMode. Read how to pick a tool, and which tools show for which parts.
Why robot 1 does it this way:
- Robot 1’s menu has nine tools, in this order: Hardware Check, Motor Direction Check, Encoder Check, Servo Finder, Flywheel Finder, Feed Time Finder, Drive Tuner, Move Tuner and Shot Tuner.
- Skip the docs pages for tools robot 1 does not have. Robot 1 has no hood, no lift or arm motor, no feed stop, no odometry (extra wheels that track where the robot is) and no piece sensor. So its menu has no Hood Finder, Motor Finder, Feed Stop Finder, Odometry Tuner or Piece Tuner. Its code also has no Aim Tuner and no Characterizer file.
Check: r1-tune-menu.sim checks that the menu lists robot 1’s tools, and not the Hood Finder, Motor
Finder, Feed Stop Finder, Odometry Tuner or Piece Tuner.
Try it (optional): in the simulator, INIT Tune and check. Use D-pad up/down to go through the menu, and count the tools. This mission changes no code.
The first robot sessions
Section titled “The first robot sessions”Follow this plan the first time robot 1 runs our code. Each line says what to do, the tool, when it passes, and what to write in the code. Each link has the details.
The rules:
- Do the lines in order. Do not start a line until the one before it passes.
- When a line fails, stop. Fix it, build, install, and do that line again. When you are not sure, ask the mentor.
- When a motor smells hot, hums, or pushes against a stop, press STOP at once.
- Write each number in the code the same day, then build and install. You lose a number that is only on the hub or on paper (Copy tuned numbers back).
- Commit at the end of each session, with what you measured in the message.
Session 1: on the block
Section titled “Session 1: on the block”Robot on a block, wheels off the floor. Glasses on. Charged battery (over 12.5 V).
- Simulator check on the laptop (Try it in the simulator). Pass: R1 TeleOp and R1 Right Corner: Launch, Park Right run with no red error.
- Hub software, once a season (Step 1: Set up your laptop). Pass: the Driver Station app is 12.0.x.
- Robot configuration (Step 1: Set up your laptop).
Pass: the 9 names match robot 1’s names table exactly (and
imuis there), plusWebcam 1when the camera is on. - Install the app (Step 1: Set up your laptop). Pass: Android Studio says the install worked, and Tune and check is in the TeleOp list.
- Tune and check > Hardware Check (Wiring checks).
Pass: all the devices are found (10, plus
Webcam 1when the camera is on). Each motor turns, and its count goes up with positive power. Both feed wheels (feeder_left,feeder_right) turn all the way round. The deploy servo moves gently. Write: nothing yet. Note on paper where the deploy servo is clear of the intake. - Tune and check > Motor Direction Check (Wiring checks).
Pass: hold one button at a time: X (front-left), Y (front-right), A (back-left), B (back-right). Each
wheel rolls forward (toward the launcher).
Write:
.reversed(...)inRobot.java, only for a wheel that rolled backward. - The IMU (Wiring checks).
Write: the logo and USB directions in
.imu(...)inRobot.java. Build and install. Pass: in Tune and check > Hardware Check,imu: turn the robot left by hand and the yaw goes up. - Tune and check > Servo Finder (Servo Finder), for the deploy servo.
Pass: at
stowedthe deploy servo is clear of the folded intake; atdeployedit pushes the intake over. It never hums. Write:stowedanddeployedinTunables.IntakeDeploy(robot 1’s code has them now: change them only if the Servo Finder finds new ones). - Tune and check > Flywheel Finder (Flywheel Finder), then Tune and check > Feed
Time Finder (Feed Time Finder). Nobody in front of the robot (the launcher end).
Pass: the flywheel holds 3450 RPM (our
speedRpm), and it gets back to speed after a piece (the screen shows the recovery time). In the Feed Time Finder, 5 test shots or more each fire one POLLEN, and the screen shows a time for each. Write: theTunables.Launcherline (kPtokF,nominalVolts), then build and install before the Feed Time Finder. Then theTunables.Feeder: feedSec = ...line. - Build, install, commit:
Session 1: directions, IMU, deploy servo, flywheel, feed time.
Session 2: first drive and each mechanism
Section titled “Session 2: first drive and each mechanism”Space on the floor, slow power first (Step 5: The buttons).
- Slow and safe:
maxPowerandpracticeMaxPowerat0.4, and the PRACTICE profile. Pass: the INIT screen says PRACTICE. - R1 TeleOp on the block. Pass: at START the intake falls over and runs, and the flywheel spins up. Stick up: all four wheels roll forward (toward the launcher).
- R1 TeleOp on the floor. Pass: stick up = forward, down = back, left stick right = strafe right (no turn), right stick right = turn clockwise. LT makes it slower. Left stick click: reverse drive (the intake end leads). BACK stops everything at once.
- Each mechanism, one at a time.
Pass: LB turns the intake off and on, and double-tap LB pushes out (both feed wheels turn backward
too). It picks up a POLLEN. B switches the flywheel off. RB then still fires: it spins up, fires, and
switches off again. B again keeps it on. RB fires one POLLEN (robot 1 handles POLLEN only), and holding
RB keeps firing. Tap RB, then press and hold it: SPRAY.
Write:
Tunables.Feeder(feedSec,power) orTunables.Launcher.shotDropRpm, only if a shot is missed or two go together (Fix it by what you see). - How many pieces fit (robot off, load by hand).
Write: the real count in
.holds(...)on the intake’s line inRobot.java. - Full power back:
maxPower = DEFAULTandpracticeMaxPower = 0.6, as before step 11. Build, install, commit:Session 2: first drive, feed timing, holds.
Session 3: the drive and the autonomous
Section titled “Session 3: the drive and the autonomous”Tape and a tape measure. A phone to film the shot.
- Tune and check > Drive Tuner (Drive Tuner): a tape line marked 0 and 48 in along the
left wheels, and 5 ft of clear floor ahead and to the right.
Pass: the drive test and the strafe test both measure 48 in.
Write:
.wheelMm(...)inRobot.java,strafeCorrectioninTunables.Drive, thenTunables.Drive.calibrated = true. Done (2026-11-06, at power 0.5):.wheelMm(108.9),strafeCorrection = 1.115,calibrated = true. Then Tune and check > Move Tuner (Move Tuner), at power 0.6 (the autos’ power). On the field, use the strip beside the HIVE (On a game field). Pass: Stops, Turns, and Move and turn sayOK; one 24 in move ends within 0.5 in on the tape. Write: eachTunables.Drive:line it shows over itsDEFAULT. - The shot: film it from the side, next to a tape measure.
Write: the launch angle (degrees up from the floor) in
.shotAngle(...)inRobot.java. Pass: in the simulator’s hit rate, from each start spot, most shots are clean. - The shot speed (Shot Tuner and the shot speed): robot on the usual
shooting spot (autos 2 and 3 start there), R1 TeleOp, fire four. D-pad up/down changes the speed by 50
RPM. The screen shows the speed, and the hub does not save it.
Pass: all four go in the up CELL.
Write:
Tunables.Launcher.speedRpm: the TeleOp’s speed, and autos 2 and 3’s (fireAllAction()with no number). Done: 3450 RPM, withreadyBandRpm = 100. Auto 1 fires from the right corner at its own speed:fireAction(2, 3750)andfireAllAction(3750). 3750 is an estimate. Tune it from that spot, and write it in both lines. - The three autonomous programs (Step 6: The autos), in PRACTICE,
hand on STOP.
Pass: the four preloads fire with the intake still folded. Each ends beside the LOADING ZONE with a
corner of the robot over the zone’s corner (on its own side), touching no wall. The report says each step
is
done. Write: the numbers in that autonomous’s file, only if a move is wrong. - Build, install, commit:
Session 3: wheel size, shot angle and speed, autonomous.
Later, when there is time
Section titled “Later, when there is time”- The simulator’s shapes (Robot 1’s robot file):
measure every
note("est.")inRobot.java. The real robot does not need these numbers. They make the simulator’s tests true.
Every session after this
Section titled “Every session after this”- The simulator check (Try it in the simulator). Charged batteries.
- After any wire or motor change: Tune and check > Hardware Check, then Tune and check > Motor Direction Check. After a new servo horn: Servo Finder, “Put an arm back on”.
- When you change numbers on the robot, copy them back to
Tunables.javathe same day.
Wiring checks
Section titled “Wiring checks”Robot 1’s code:
drive(Drive.mecanum("front_left", "front_right", "back_left", "back_right") .motor("gobilda-5203-312").wheel("gobilda-gripforce-mecanum-104").wheelMm(108.9) // Drive Tuner, measured at power 0.5 .wheelsAtMm(400, 336) // track (left-right), wheelbase (front-back), wheel centres: est., measure ours // TODO check how our Control Hub is mounted: the way its logo and USB port face. .imu("imu", LogoFacingDirection.UP, UsbFacingDirection.BACKWARD));Learn it: Wiring checks: motors and encoders. Read the Hardware Check, the Motor Direction Check and the Encoder Check.
Why robot 1 does it this way:
- The devices in robot 1’s configuration:
front_left,front_right,back_left,back_right,intake,launcher(motors),feeder_leftandfeeder_right(Continuous Rotation Servos),intake_deploy(a servo),Webcam 1, and the hub’s ownimu. - The front is the launcher end. Stand behind the robot, looking toward the launcher: that is “front left”. Hold X, Y, A, B: each wheel must roll toward the launcher.
- No
.reversed(...)on robot 1’s drive line. The library reverses the left side (front_left,back_left), so the screen shows(reversed)next to those two. - A hub set up before 2026-11-04 has the old drive names: the front used to be the intake end. Rename them in the configuration, and leave the wires as they are (robot 1’s names table in Step 1: Set up your laptop).
- The feed wheels (
feeder_left,feeder_right) must each turn all the way round in the Hardware Check. When one moves a little and stops, that servo is not set to spin yet. Set it with goBILDA’s Servo Programmer. - The IMU: robot 1’s line still has a
TODO. Look at the Control Hub: which way the REV logo and the USB port face (forward = toward the launcher). Put them in the.imu(...)line, and delete theTODO. Then turn the robot left by hand in the Hardware Check: the yaw goes up.
Check: r1-motor-direction.sim opens the Motor Direction Check and holds X: only the front left wheel
runs. On the robot, each wheel rolls toward the launcher, and every motor says OK in the Encoder Check.
Try it (optional): in the simulator, INIT Tune and check, pick Motor Direction Check and press A, then ▶. Hold X, Y, A and B one at a time, and watch which wheel turns in the 3D view. This mission changes no code.
Servo Finder
Section titled “Servo Finder”Robot 1’s code:
public static double stowed = 0.64; // intake folded (Servo Finder) public static double deployed = 0.5; // intake pushed over (Servo Finder)Learn it: Servo Finder: ends and positions. Read “A new servo part, step by step” and “Put an arm back on”.
Why robot 1 does it this way:
- One servo to find. Do “A new servo part, step by step” first. Robot on a block, flywheel off, no POLLEN loaded.
- The deploy servo (
intake_deploy): fold the intake up first.stowedis clear of the folded intake.deployedpushes the intake over, plus a little.stowedhas the bigger number. Either order is fine. - The feed wheels are not servos with positions. They spin. The Feed Time Finder tunes them.
- After a new horn: “Put an arm back on”, with the servo holding at the number from
Tunables.java.
Check: r1-v1.sim checks that the deploy servo goes back to stowed after the push
(servo intake_deploy actual > 0.6).
Try it (optional): find the deploy servo’s direction in the simulator. Run Tune and check > Servo
Finder, ▶, choose intake_deploy, set the start point to 0.64, and press A. Make the step 0.01, then press
D-pad down a few times. Watch the intake in the 3D view: which way does a smaller number move it? This
mission changes no code.
Flywheel Finder
Section titled “Flywheel Finder”Robot 1’s code:
public static double kP = 40; // speed control: push per speed error (goBILDA) public static double kF = 12.5; // speed control: steady power (goBILDA) public static double nominalVolts = DEFAULT; // battery volts kF was found at (12.8) public static boolean batteryCompensation = false; // off until proven on a real robotLearn it: Flywheel Finder: gains and recovery. Read how it finds the gains, and how to read the recovery time.
Why robot 1 does it this way:
- Still to do on robot 1. Its gains now are goBILDA’s tested numbers, from their starter code.
- The motor is
launcher(a goBILDA 6000 RPM motor with no gearbox). Robot on a block, safety glasses on, nobody in front of the robot: the launcher and its ramp are the front. - Hold our shooting speed: 3450 RPM (
Tunables.Launcher.speedRpm). - Feed a piece with a push stick (a ruler or a strip of wood, at least 30 cm), or with the robot’s own feeder. Never use your fingers.
batteryCompensation = false: off until it is proven on a real robot. CopynominalVoltsanyway.
Check: r1-v1.sim checks that the flywheel spins from START (motor launcher velocity > 1000). Only the
real robot can find the gains. On the robot, you copied the Tunables.Launcher gains line, and the speed
holds 3450.
Try it (optional): run the Flywheel Finder in the simulator. Choose launcher, let go of A, then hold A
until the top speed shows. Press B, and set 3450 with the D-pad. Watch the error line. This mission changes
no code.
Feed Time Finder
Section titled “Feed Time Finder”Robot 1’s code:
.feeder(Indexer.crServo("feeder_left").alsoServoReversed("feeder_right").part("gobilda-2000-speed") .tunables("Feeder").optional().looks(leftFeedWheels, rightFeedWheels)) public static double power = DEFAULT; // both wheels' power, -1 to 1 (1.0); below 0 = both turn the other way public static double feedSec = DEFAULT; // the most time the wheels run per shot (0.4): none goes = more public static boolean stopOnShot = true; // stop the wheels when the flywheel sees the shot (not in SPRAY)Learn it: Feed Time Finder. Read why it needs several test shots, and what its warnings mean.
Why robot 1 does it this way:
- Two feed wheels, one section.
feeder_leftandfeeder_rightare goBILDA Speed servos set to spin. They squeeze each POLLEN into the flywheel. Both get the samepowerfromTunables.Feeder. - Check the direction first. Set
feedSecto 2, fire with no POLLEN, and watch both wheels pull in. Both pull out: add.reversed()to the feeder inRobot.java. One pulls out: changealsoServoReversedtoalsoServo. Then putfeedSecback toDEFAULT. stopOnShot = true: the wheels stop as soon as the flywheel sees the shot. SofeedSecis only the time limit, for the POLLEN that starts farthest back. In SPRAY the wheels keep turning.- Fire 5 test shots or more, from each place a POLLEN can sit in robot 1. Load one far back more than
once. The finder gives
feedSecfrom the longest time, plus 0.1 s. - Do the Flywheel Finder first. The test shots need the flywheel to hold its speed and see each shot.
Check: r1-feed-wheels.sim checks that one RB fires one POLLEN. r1-tune-menu.sim checks the menu. On
the robot, the finder saw a shot for each test shot, and the Tunables.Feeder line is in the code.
Try it (optional): run the Feed Time Finder in the simulator. INIT Tune and check, pick Feed Time
Finder, press A, then ▶. Press LB, wait for ready, and press RB a few times. Read the times. This mission
changes no code.
Drive Tuner
Section titled “Drive Tuner”Robot 1’s code:
.motor("gobilda-5203-312").wheel("gobilda-gripforce-mecanum-104").wheelMm(108.9) // Drive Tuner, measured at power 0.5 public static double strafeCorrection = 1.115; // strafing: more push sideways (Drive Tuner, power 0.5) // Strafing LEFT, if it slips more that way: Drive Tuner "Strafe left" test, then remove the // (not written = 1.115 both ways) // public static double strafeCorrectionLeft = 1.115;Learn it: Drive Tuner: wheel size and strafe correction. Read the steps and “Put the numbers in your code”.
Why robot 1 does it this way:
- Done on 2026-11-06, at power 0.5. Robot 1’s autos drive at 0.6.
- The wheel: robot 1 keeps the catalog wheel and adds the measured size after it, with
.wheelMm(108.9). strafeCorrection = 1.115andcalibrated = trueinTunables.Drive.- Strafe left is not measured yet. R1 Right Wall’s first move strafes left, and on the robot it came up
short. So that move is 42.8 in, in place of 35.8. After a Strafe left test, write the number in the
strafeCorrectionLeftline and remove the//. Then put that move back to 35.8.
Check: in the simulator, autos run with calibrated = false too, so the simulator cannot check the
numbers. On the robot, the Drive test and the Strafe test measure 48 within 0.5 in. Then run
r1-auto-right.sim, which drives the left strafe.
Try it (optional): see what strafeCorrection does. Copy r1-auto-right.sim to my-strafe.sim, and add
set tunable Drive.strafeCorrection 1.0 before the init line. Run it, and read which end check changes.
Then delete my-strafe.sim: git restore does not remove a new file.
Move Tuner
Section titled “Move Tuner”Robot 1’s code:
public static double turnKp = DEFAULT; // auto turns: push per degree off (0.012) public static double turnKd = DEFAULT; // auto turns: brake near the end (0.003) public static double moveMinPower = DEFAULT; // auto: least power that moves it (0.30) public static double slowDownIn = DEFAULT; // auto: slow down over at least the last N in of each move (0 = off; try 6) public static double turnMinPower = DEFAULT; // auto turns: least power while still off (0; Move Tuner) public static double turnToleranceDeg = DEFAULT; // auto turns: done this close, in degrees (1.0; Move Tuner) public static double moveTurnScale = DEFAULT; // moveWithTurn: how hard it turns while it moves (0.60; Move Tuner) public static double moveMaxTurnPower = DEFAULT; // moveWithTurn: most turn power (0.35; Move Tuner)Learn it: Move Tuner: how exactly moves stop and turns end. Read the five tests, and On a game field.
Why robot 1 does it this way:
- Robot 1 is a mecanum, so it runs all five tests. Its lines are all
DEFAULTnow. Type each number the tuner shows over itsDEFAULT. - Set the tuner’s power to 0.6, the power of robot 1’s autonomous moves.
- Why it matters for robot 1: its autos start with short moves (8 in off the left wall, 9.4 in off the
right corner) that end fast and can slide. Auto 1 uses
moveWithTurn, which test 5 tunes. - On the game field, use the strip beside the HIVE.
Check: on the robot, the docs’ Done when. Then run r1-auto.sim, r1-auto-right.sim and
r1-auto-left.sim with the new numbers: each auto must still finish in 30 s. r1-slowdown.sim checks that
auto 1 still finishes every step with slowDownIn = 6.
Try it (optional): change slowDownIn = DEFAULT to slowDownIn = 6. Run the three auto tests: do they
all still pass? Undo the change.
Camera lighting
Section titled “Camera lighting”Robot 1’s code:
camera = add(Camera.webcam("Webcam 1").autoExposure().goal("BLUE SCORING", "RED SCORING")); public static boolean liveView = true; // its picture on the Driver Station (menu > Camera Stream, in INIT), PRACTICE only public static double pitchDeg = 35; // tilted 35 degrees up (to see the HIVE): the aim uses the floor's angle. TODO measure the mountLearn it: Camera lighting. Read how the lighting test works, and what to do at an event.
Why robot 1 does it this way:
- A Logitech webcam,
Webcam 1, with the lighting test on (autoExposure()). - The camera sees nothing until the test is done. To run the test again, hold Y for 1/2 s, aimed at a tag. Use it for a start with no tag in view.
- At an event: copy the two lines (
exposureMs,autoLighting = false) intoTunables.Webcam1. Back home, setautoLighting = trueagain. - The live view is on in PRACTICE (
liveView = true): the Driver Station’s Camera Stream, in INIT. - No Aim Tuner yet. Robot 1 aims by turning the whole robot: the right stick click (auto-aim), and RB with
the HIVE in view (
Tunables.Aim.aimOnFire = true, at most 0.5 s). Its code has no Aim Tuner file and nocameraOffsetline. Make the file when shots go to one side of the CELL (Aim Tuner: camera offset). Measure the camera first. In the robot file it is on the robot’s middle line (left=0), andpitchDeg = 35has aTODO measure the mount. Measure where the camera is, from the robot’s edges.
Check: r1-camera-lighting.sim checks that INIT, facing the HIVE, shows the lighting line.
r1-camera-aim.sim checks that the webcam sees our HIVE’s tags, and that the right stick click turns the robot
to the HIVE. On the robot, INIT facing a tag shows a setting and no warning.
Try it (optional): run r1-camera-lighting.sim and read the screen that print screen shows: find the
Webcam 1 lighting line. This mission changes no code.
Shot Tuner and the shot speed
Section titled “Shot Tuner and the shot speed”Robot 1’s code:
public static double speedRpm = 3450; // TeleOp and autos 2-3 shot speed (auto 1 has its own; goBILDA had 2679) public static double stepRpm = 50; // speed change per D-pad press (library default 100) public static double readyBandRpm = 100; // "at speed" = this close to the target (library 60: at 3450 the wheel sat near 3429 and seldom fired)Learn it: Shot Tuner: the shot table. Read it to learn how a shot table works. Robot 1 does not use one yet.
Why robot 1 does it this way:
- The Shot Tuner is in robot 1’s menu (it has a launcher), but robot 1 uses no shot table. It shoots POLLEN only, from known spots, at fixed speeds.
speedRpm = 3450: the TeleOp and autos 2 and 3, from the usual shooting spot. The team found it on the robot. Fire four from that spot, and change the speed with D-pad up/down (50 RPM a press,stepRpm = 50) until all four go in the up CELL.readyBandRpm = 100: at 3450 the wheel sat near 3429, and with the library’s 60 it seldom fired.- 3750 in auto 1 (the right corner): an estimate. Tune it from that spot, and write it in both fire lines.
Check: r1-auto-right.sim fires all four at speedRpm. r1-buttons.sim checks that the D-pad speed
buttons are on the button map.
Try it (optional): the simulator’s launcher is an estimate. Copy r1-auto-right.sim to my-speed.sim,
and add set tunable Launcher.speedRpm 2325 before the init line. Run both files and compare the shots’
verdicts that print pieces shows. Then delete my-speed.sim.
The tuning menu
Section titled “The tuning menu”Robot 1’s code:
lib.tuningMenu(g1.guide); // GUIDE held 1 s: the tuning menu (PRACTICE profile)Learn it: Live tuning: change numbers while the robot runs. Read how to open the menu, change a number, and copy it back.
Why robot 1 does it this way:
- Open it: PRACTICE profile, R1 TeleOp, START, then hold GUIDE 1 s. In the simulator, the M key.
- Robot 1’s numbers to tune here:
LauncherspeedRpm;FeederfeedSecandpower. - The D-pad speed change (up/down): the hub does not save it. Copy a good speed into
speedRpm.
Check: r1-buttons.sim checks that the D-pad speed buttons are on the button map.
Try it (optional): in the simulator, INIT R1 Right Corner: Launch, Park Right, set Profile to
PRACTICE with the D-pad, and press STOP. Then INIT R1 TeleOp, press ▶, and hold M for 1 s: the menu opens.
Change the launcher’s speedRpm, then press B: the line to copy. Press Y to put every value back. This
mission changes no code.
Fix it by what you see
Section titled “Fix it by what you see”Robot 1’s code:
public static double power = DEFAULT; // both wheels' power, -1 to 1 (1.0); below 0 = both turn the other way public static double feedSec = DEFAULT; // the most time the wheels run per shot (0.4): none goes = more public static boolean stopOnShot = true; // stop the wheels when the flywheel sees the shot (not in SPRAY)Learn it: Fix it by what you see. Read the table for each part. For robot 1’s feed, use the table below.
Why robot 1 does it this way: robot 1 has stopOnShot = true, so most feed problems are about seeing the
shot. Change a number live in the tuning menu first, then copy it back.
| What you see | Change |
|---|---|
| A POLLEN far back stops short of the flywheel | Tunables.Feeder.feedSec: more (run the Feed Time Finder again) |
The wheels run the full feedSec after a shot, and push the next POLLEN in |
Tunables.Launcher.shotDropRpm: less (the flywheel misses the shot) |
| The wheels stop before the POLLEN reaches the flywheel | Tunables.Launcher.shotDropRpm: more (the flywheel sees a shot that is not there) |
| The POLLEN goes in too hard or too softly | Tunables.Feeder.power |
| RB waits and seldom fires | Tunables.Launcher.readyBandRpm: more (robot 1 has 100) |
| The short auto moves stop past their end | Tunables.Drive.slowDownIn = 6 |
Check: r1-feed-wheels.sim checks that one RB fires one POLLEN, and a second RB a second one.
Try it (optional): plant a mistake. Copy r1-feed-wheels.sim to my-feed.sim, and add
set tunable Feeder.power -1 before the init line. Run it: which check fails, and why? (The simulator’s
wheels feed only on + power: -1 turns them outward.) Then delete my-feed.sim.
Copy tuned numbers back
Section titled “Copy tuned numbers back”To change a number on the robot without a new build, use the tuning menu (Open it and change a number):
- PRACTICE profile (checklist line 11). R1 TeleOp, INIT, START.
- Hold GUIDE 1 s (the round logo button in the middle of the gamepad; in the simulator the M key): the menu opens. D-pad up/down chooses a number, right/left changes it.
- A saves the values on the hub. B shows the changed values as lines to copy.
- The same day: copy every value you keep into
Tunables.java. Build, install. Then Y in the menu puts every value back to the code’s (and deletes the saved ones).
At every INIT, the Driver Station lists the values on the hub that differ from Tunables.java. No list means
the code is the record again. This is the team rule from the start page.
Next: Step 9: Team habits.