Fix it by what you see
Something on the robot is not right. Find what you see, and change one number.
You need: the finders done for the part (the tuning order).
Find what you see in the first column. Change the setting in the middle column, in the direction it says.
Change one number at a time, and test after each change. The tuning menu changes most
of them while the robot runs. Then copy the good value back into Tunables.java.
When the last column names a finder, run that finder again: a guess is worse than a measurement.
| What you see or want | Setting | Which way |
|---|---|---|
| Driving | - | - |
| The robot is too fast for the drivers | Drive.maxPower |
less |
| A brand-new driver needs a slower robot for a day | Drive.practiceMaxPower |
less, then back to DEFAULT |
| Fine moves with the slow trigger are too slow or too jumpy | Drive.slowSpeed |
more / less |
| Double taps are missed, or single taps wait too long | Buttons.tapGapSec |
more / less |
| Autonomous moves | - | - |
| Autonomous does not run (“AUTONOMOUS IS OFF”) | Drive.calibrated |
true, after the Drive Tuner |
| Sideways moves are short or long (mecanum) | Drive.strafeCorrection |
Drive Tuner |
| Turns stop a few degrees off target | Drive.turnMinPower, then Drive.turnKp |
Move Tuner (Turns), or more |
| Turns wobble or overshoot | Drive.turnKp / Drive.turnKd |
Move Tuner (Turns), or less / more |
| Turns rock near the end and take long to finish | Drive.turnToleranceDeg |
Move Tuner (Turns), or more |
| The robot stops just before the end of a move | Drive.moveMinPower |
Move Tuner (Creep), or more |
| Moves slide past the end | Drive.slowDownIn |
Move Tuner (Stops), or more (try 6) |
moveWithTurn ends its move before the turn is done |
Drive.moveTurnScale, then Drive.moveMaxTurnPower |
Move Tuner (Move and turn), or more |
| Path steps do not run on the real robot | Odometry.checked |
true, after the Odometry Tuner |
| The odometry’s distances are off (OTOS) | Odometry.linearScalar |
Odometry Tuner |
| Intake | - | - |
| Pieces are thrown or jam on the way in | Intake.inPower |
less |
| Pieces do not come out | Intake.outPower |
more |
| Lift, arm, servos | - | - |
| A lift or arm is slow to arrive, or shakes | kP |
more / less |
| A lift sags | kF |
more |
| A lift or arm slams into its ends | slowZone |
more |
| A claw does not open or close far enough | positions | Servo Finder |
| Actions go on before a servo arrives | travelSec |
more |
| Launcher | - | - |
| Shots land short or long | speedRpm (or the shot table) |
Shot Tuner, or more / less |
| The flywheel is slow to reach speed, or its speed swings | kP, kF |
Flywheel Finder |
| The flywheel suddenly speeds up now and then | kD |
0 (the Flywheel Finder’s line has kD = 0: copy each number to its own name) |
| In the Flywheel Finder, the wheel stops when a piece touches it | the direction | Direction must say “as in Robot.java”; else press X (why) |
| It waits too long before it fires | readyBandRpm |
more |
With the speed from the camera, it waits to fire and the Shot distance line wobbles |
distanceSmoothSec |
more (and check the shot table for a steep part) |
| Shots land at different distances | readyBandRpm |
less |
| The second of two quick shots lands short | shotIntervalSec |
more |
| The first shot takes too long to spin up | idleRpm |
more (uses more battery) |
| One D-pad press changes the speed too much or too little | stepRpm |
less / more |
| Feeding | - | - |
| It feeds two pieces at once | feedSec |
less |
It feeds two at once, but less feedSec feeds none from farther back |
stopOnShot |
true |
| It feeds no piece | feedSec |
more |
| It feeds the near pieces but not the ones far back | feedSec |
the Feed Time Finder’s number |
| The Flywheel Finder’s “Shots seen” is less than the pieces fed | shotDropRpm |
less |
With stopOnShot, the wheels still run the full feedSec after a shot |
shotDropRpm |
less |
| An eject pushes out two pieces | ejectFeedSec |
set it, then less |
| With the speed from the camera, a shot waits while its speed keeps changing | lockSpeedWhileFiring |
true |
With stopOnShot, the wheels stop before the piece gets to the flywheel |
shotDropRpm |
more |
| A pusher comes back before the piece is gone | pushSec |
more |
| Aiming | - | - |
| Aim is slow, or swings past the goal | Aim.turnKp |
more / less |
| Shots miss although it says “AIMED” | Aim.toleranceDeg |
less |
| The robot or turret aims a little to one side | cameraOffset |
Aim Tuner |
| A turret swings too hard | Turret.maxPower |
less |
| The wires allow a turret to turn more or less | Turret.min, max |
Motor Finder |
| Camera and sensors | - | - |
| The camera pictures are too dark or noisy | Camera.gain |
more / less |
| A HuskyLens’s turn angles are too big or too small | Camera.hfovDeg |
measure it |
| A color sensor sees pieces that are not there | nearMm |
less |
| A color sensor mixes up kinds of piece | hueTolerance |
less |
When nothing here fits, read Troubleshooting: it covers error messages, and problems with wiring and code.
Done when
Section titled “Done when”- The robot does what you want, and each changed number is in
Tunables.java.
Next: Tests: check your code and your robot after every change.
Look it up: Tunables.java, Troubleshooting.
Something wrong on this page? Tell us with a short GitHub form.