RoboticsIntermediate

Lookup Tables vs Equations for Shooter Tuning

When robot physics is messy, a measured lookup table can beat a beautiful but incomplete equation.

FRCShooterLookup tableCalibration

Site connection

The robotics writing explains choosing lookup tables for shooter angle and RPM because real-world behavior was nonlinear and tunable.

Visual model

Tuning curve response

The PID curve stands in for the closed-loop side; the page explains how lookup values choose the setpoint.

Interactive

PID tuning changes speed, overshoot, and settling

The Equation Is Not the Robot

A projectile equation can estimate launch angle and speed, but an FRC shooter includes wheel compression, battery sag, spin, changing carpet interaction, mechanism flex, measurement noise, and game-piece variation. A lookup table records what the robot actually did.

MeasureTest shots at known distances.
StoreRecord angle and RPM that scored reliably.
InterpolateBlend between nearby distances.
RetuneUpdate values after mechanical changes.

What the Table Stores

A shooter table usually maps distance to mechanism setpoints: pivot angle, flywheel RPM, hood position, or spin differential. The drivetrain estimates distance; the table returns setpoints.

Interpolation is the bridge between measured distances. If 2.5 m and 3.0 m are measured, a 2.7 m shot can blend between them.

When Equations Still Help

Equations are still useful for initial guesses, simulation, sanity checks, and extrapolation warnings. The best system often combines physics intuition with measured calibration.

A table without physics can become dangerous outside its tested range; an equation without measurement can miss the robot's real behavior.

MethodBest useRisk
EquationInitial estimate and sanity checkIgnores messy robot-specific effects
Lookup tableReliable match-tuned setpointsPoor extrapolation
HybridEquation seeded, table correctedMore implementation complexity

Common Pitfalls

  • Extrapolating far beyond tested distances.
  • Forgetting to retune after changing wheels or compression.
  • Interpolating angles without checking actual shot arcs.
  • Blaming PID when the table setpoint is wrong.

Quick check

Quiz

Why might a lookup table outperform a projectile equation on a real robot?
  1. It captures measured robot-specific behavior
  2. It violates physics
  3. It removes sensors
  4. It guarantees every shot

Measured tables include real effects that simple equations often omit.

Sources and Further Reading

Related Explainers