Skip to main content

Test, Diagnose, and Hand Off

Mediumdifficulty

Validate in five stages​

StageWhat to testExit criterion
SoftwareEvent solver, selector oracle, bounded interpolation, frame signs, and solver statusKnown cases pass and optimized selection matches exhaustive selection.
BenchWheel tracking, hood repeatability, recovery, and feeder delayReady bands and delay come from synchronized measurements.
Stationary fieldRandomized distance sweep with untouched validation ballsEntry and retention meet a declared target across the calibrated range.
Controlled motionAlternate compensation OFF and ON inside speed and direction blocksMotion improves entry without changing zero-velocity behavior.
CompetitionEntry, retention, gate rejections, and release-state telemetryFailures can be assigned to geometry, retention, calibration, state estimation, or readiness.

Use the paper as a worked validation record​

RecordTarget entriesRetained scoresInterpretation
Initial development calibration70/100Not separately reported hereSequential baseline
After make-window calibration93/100Not separately reported hereIntegrated workflow result
Solo operational record94/9784/9710 bounce-outs and 3 geometric misses
Selected complete MTI match105/110101/1104 bounce-outs and 5 geometric misses

The jump from 70/100 to 93/100 is 23 percentage points (95% interval: 12.5 to 33.2 points, paper §§7–8). Several things changed between those two tests, so it doesn't show which change helped.

The moving-shot test is stronger evidence, because compensation was switched on and off in alternation at each speed: 54/60 with it versus 30/60 without. The previous lesson has the full table.

The MTI match is one match, so 105/110 is a good result, not a prediction for every match. And the model doesn't predict whether a ball stays in after it hits the goal.

Let the failure category choose the next experiment​

In the solo run, 10 of the 13 shots that didn't count had actually gone in and bounced out. Adjusting the simulated opening can't fix that. The paper suggests measuring spin with marked balls and studying how balls hit the goal as next steps.

Observed failureInspect next
Repeatable front/back miss while stationaryrelease speed/angle, distance reference, systematic map error
Good stationary shots, misses during motionvelocity frame, delay, TOF range, acceleration and solver residual
Entry followed by bounce-outspin, entry velocity, impact geometry and retention
First shot works, rapid next shot failswheel recovery, feeder timing and actual release readiness
Simulation looks precise but video disagreescamera calibration, units and physical model assumptions

The camera tests measured the wheel-to-ball ratio, not drag. And the simulator matching another solver shows the code is right, not that the physics assumptions are.

Model-guided shot or two empirical LUTs?​

A model narrows down what to test before you go to the field. The purely experimental approach puts the robot at many distances, tries lots of wheel and hood settings, and keeps what works. Both end up with the same two tables, and shooting on the move needs a flight-time table either way.

Compare the complete workflows​

The experimental method still needs a clear definition of success, enough repeats to tell settings apart, a way to fill in between distances, and test shots you didn't tune with. The model-based method still needs real shots, because the physics model can't predict wheel slip, ball squish, motor response, or wear.

Plan before collecting

Start with the default 15 distance stations. Increase the empirical candidate pairs from 9 to 15, then increase the repeats. Watch the multiplication. Next increase the model-guided local pairs: a weak model or changed mechanism also expands the physical search.

Method comparisonPlan the calibration campaign before firing
MODEL-GUIDEDPhysics narrows the search
  1. simulate scoring speed-angle commands
  2. rank each command's perturbation box
  3. test a local set of wheel-hood corrections
  4. store the final two actuator LUTs
EMPIRICAL TWO-LUTThe field test supplies the search
  1. choose a grid of target distances
  2. sweep candidate wheel-hood pairs
  3. repeat and rank physical outcomes
  4. store wheel and hood versus distance
physical launches in this teaching planmodel-guided307empirical LUT7500188375563750
model-guided local calibrationempirical wheel-hood sweep
Model-guided tuning22515 × 3 × 5
Empirical tuning67515 × 9 × 5
Held-out validation75same budget for both
Teaching-plan difference443physical launches

This planner counts launches; it does not predict scoring probability. The model-guided lane assumes seven setup launches and a smaller local candidate set after simulation. Those are editable teaching assumptions, not a measured head-to-head experiment from the paper. Setup changes, failed feeds, warm-up shots, and retests would add to both totals.

Worked example: 307 versus 750 planned launches​

The default teaching plan uses 15 distance stations, five repeats per candidate pair, and five held-out validation shots per station.

For a model-guided local search with three physical correction pairs per station plus seven setup launches:

7+15(3×5+5)=307 launches.7+15(3\times5+5)=\mathbf{307\ launches}.

For a nine-pair empirical sweep at every station:

15(9×5+5)=750 launches.15(9\times5+5)=\mathbf{750\ launches}.

These are planning numbers from assumptions you can change in the demo. The paper didn't run this comparison, so it doesn't show which method ends up more accurate, only how many shots each takes.

What each method knows​

QuestionRobust model + calibrationDense empirical two-LUT campaign
How is a candidate proposed?Drag-aware rim event and perturbation coverage identify promising exit speed and angle.Physical wheel-hood pairs are swept at each distance.
What gets deployed?Calibrated distance-to-wheel and distance-to-hood maps.Distance-to-wheel and distance-to-hood maps.
Main data burdenTransfer identification, local corrections, repeats, and held-out validation.Distance stations × candidate pairs × repeats, then held-out validation.
Strong diagnosticSeparates flight geometry from launcher transfer and exposes sensitivity around a command.Directly includes unmodeled contact, spin, wear, and assembly effects present during testing.
Main failure modeWrong drag, geometry, transfer, or perturbation assumptions can narrow the search around the wrong region.Sparse or noisy trials can select a lucky pair; the tables conflate every source of error.
Outside the measured rangeRecompute, recalibrate, and validate.Add stations and validate. Do not extrapolate.
Runtime costTwo LUT queries after offline selection and calibration.Two LUT queries.

On the robot they're equally simple. The model helps before that, by cutting down what you have to test and showing why some shots are fragile. The experimental method's strength is that it measures the actual robot.

Build two empirical tables without fooling yourself​

  1. Choose distance stations before shooting. Cover the intended range and add stations near mechanical regime changes. Record the true shooter-to-front-lip geometry.
  2. Define the candidate search. Sweep paired flywheel and hood commands. Changing one variable at a time can miss an interaction, while a full rectangular sweep can become expensive.
  3. Randomize and repeat. Interleave candidate pairs so battery state, wheel temperature, ball wear, and operator rhythm do not align with one command.
  4. Separate outcomes. Record geometric entry, bounce-out, and retained score. A hood pair that enters reliably but bounces out is a different problem from a geometric miss.
  5. Select with uncertainty visible. Keep counts, not only percentages. Five of five is less information than 45 of 50 even though both display 100%.
  6. Fit and verify shape-preserving tables. Check every interval for overshoot. Record out-of-range queries explicitly; a clamped value is not a calibrated shot at the requested distance.
  7. Validate on untouched launches. Do not report the same trials used to choose a command as evidence that the chosen command generalizes.

You can save shots by testing a coarse grid first, then only filling in around the settings that looked good. Record every setting you tried so someone can see how you narrowed it down.

A practical hybrid​

For this launcher, the strongest workflow is usually hybrid:

  1. use the drag-aware event map to reject impossible and fragile speed-angle regions;
  2. translate the selected region into initial wheel-hood commands with transfer measurements;
  3. run a local empirical sweep at representative distances;
  4. build the two actuator LUTs with monotone interpolation;
  5. validate fixed-distance and moving shots with held-out balls and randomized order;
  6. expand the empirical search whenever residuals, ball changes, or mechanism changes show the model prior is no longer adequate.

The simulator does what it's good at, ruling out bad shots before testing, and real shots do the part only real shots can.

Java: a transparent two-LUT deployment​

FTCQuery empirical wheel and hood maps
LauncherCommand empiricalCommand(double distanceInches) {
if (!Double.isFinite(distanceInches)) return LauncherCommand.invalid();

double usedDistance = clamp(distanceInches, MIN_CAL_DISTANCE, MAX_CAL_DISTANCE);
double wheelTicks = wheelLut.get(usedDistance);
double hoodPosition = hoodLut.get(usedDistance);

return new LauncherCommand(
wheelTicks,
hoodPosition,
usedDistance != distanceInches // expose clamping to the caller
);
}

The code is short on purpose. The hard work is in the testing that produced the table, the interpolation between its values, and the checks that show where you can trust it.

ExerciseCount the empirical campaign

A team tests 12 distance stations, 8 wheel-hood pairs per station, and 6 repeats per pair. It then reserves 10 held-out validation shots at each station. How many physical launches are planned?

Show solution

Tuning uses 12×8×6=57612\times8\times6=576 launches. Validation uses 12×10=12012\times10=120. The total is 696 launches, before warm-up shots, failed feeds, or retests.

A reproducible handoff to the next team​

Hand over the tables with their units and valid ranges, the code commit, the simulator settings, the controller settings, how the feeder delay was measured, and what counted as a made shot. Keep the raw shot counts, and keep tuning shots separate from test shots.

Also write down the coordinate frame and sign conventions, what happens at the edges of each table, the full set of firing checks, and the problems you already know about. A table of final numbers without that is hard to check and easy to misuse on the next robot.

For moving shots, log the pose, velocity, acceleration, aim distance, aim steps, wheel speed asked for and measured, hood setting, and when the ball actually left, all with matching timestamps. The paper's moving-shot data doesn't have this per-shot detail, and it would make diagnosing misses much easier.

The simulator code is public, but the paper's raw experiment archive isn't included here yet.

Sources: final paper §§7–11 and the versioned source map.

Finish: return to the elective overview and research paper.