Work in progress. This library and its docs are new and still changing, and some parts are not yet tested on a real robot. If something is wrong or unclear,tell us with a short GitHub form.
Tuning
Find your robot's numbers in the right order, then fix what you see on the field.
Every robot program is full of numbers: where a servo opens, how high a lift may go, how fast a flywheel
spins, how big the wheels are. When you guess them, you waste practice time and break parts. The
finders measure them for you and show the lines to copy into Tunables.java and Robot.java.
The tuning order
Section titled “The tuning order”Go from top to bottom. Skip a tool for a part your robot does not have: the Tune and check menu leaves it out.
flowchart TB
subgraph G1["Wiring"]
H["Wiring checks<br/>devices, wheels, encoders"]
end
subgraph G2["Parts that move"]
direction LR
S["Servo Finder<br/>ends + positions"] --> HO["Hood Finder<br/>two stops"] --> M["Motor Finder<br/>limits + positions"]
end
subgraph G3["The launcher"]
direction LR
F["Flywheel Finder<br/>gains + recovery"] --> FS["Feed Stop Finder<br/>hold + release"]
F --> FT["Feed Time Finder<br/>feedSec"]
end
subgraph G4["Driving"]
direction LR
D["Drive Tuner<br/>wheel size + strafe"] --> O["Odometry Tuner<br/>pods + offsets"] --> MV["Move Tuner<br/>stops + turns"]
end
subgraph G5["Scoring"]
direction LR
L["Camera lighting<br/>a setup, not a tool"] --> A["Aim Tuner<br/>camera offset"] --> T["Shot Tuner<br/>shot table"]
end
subgraph G6["Last"]
direction LR
P["Piece Tuner<br/>sensors"] --> C["Characterizer<br/>how it moves"]
end
G1 --> G2 --> G3 --> G4 --> G5 --> G6
| # | Page | It finds | Why it comes here |
|---|---|---|---|
| 1 | Before you tune: the Tune and check OpMode | nothing: the menu, safety, help | read it once |
| 2 | Wiring checks | Hardware Check, Motor Direction, Encoder | every other number trusts the wiring, so it comes first |
| 3 | Servo Finder | ends and positions | a servo pushed past its end breaks, so find the ends before code moves it |
| 4 | Hood Finder | a hood’s two stops | the Shot Tuner writes hood positions, so the hood needs its stops first |
| 5 | Motor Finder | limits and positions | a wrong limit breaks parts, so do it before you drive a mechanism with code |
| 6 | Flywheel Finder | gains (the numbers that hold its speed) and recovery | the shot table is only true when the wheel holds its speed |
| 7 | Feed Stop Finder, or Feed Time Finder for a CR servo or motor feeder with no feed stop, pushing parts or feed wheel (a robot gets one or the other) | hold and release; or feedSec (how long the feeder runs per shot) |
the launcher must feed one piece at a time before you tune shots |
| 8 | Drive Tuner | wheel size and strafe | autonomous moves need the right distances. Autonomous stays off until it passes |
| 9 | Odometry Tuner | pod directions and offsets (a pod is a small free wheel that measures how far the robot rolls) | driveTo and the shot distance need a true pose (where the robot is on the field, and which way it faces). Path steps stay off until it passes |
| 10 | Move Tuner | where moves stop, how turns end | it needs the right distances (Drive Tuner) and, with odometry, a true pose to measure with |
| 11 | Camera lighting (a setup, not a tool) | the camera setting for each kind of light | the camera must see the tags well before you aim or tune shots |
| 12 | Aim Tuner (own file) | camera offset | aim first, so you build the shot table with straight shots |
| 13 | Shot Tuner | the shot table | it needs a steady wheel, straight aim and a true distance: everything above |
| 14 | Piece Tuner | what each sensor sees | nothing moves, so it can also come earlier |
| 15 | Characterizer (own file) | how the motors move | it needs a robot that drives and lifts that work, so it comes last |
After the finders:
- Live tuning: change a number from the gamepad while your TeleOp runs (the tuning menu in TeleOp, not Tune and check).
- Fix it by what you see: “the lift sags” -> which number to change, and which way.
Something wrong on this page? Tell us with a short GitHub form.