Conventions & Notation
Coordinate frames
All 2-D geometry in the curriculum uses one right-handed convention:
| Convention | Meaning |
|---|---|
| forward (robot frame) / toward the far wall (field frame) | |
| left | |
| , | counter-clockwise, viewed from above |
| angles | radians internally; wrapped to before use in any controller |
Two frames appear constantly:
- Field frame: fixed to the field. Poses and paths live here.
- Robot frame: rides on the robot: out the front, out the left side. Drive commands live here, because that is what the mecanum mixer consumes.
Converting a field-frame vector into the robot frame is a rotation by :
If a wheel fights the others or the robot strafes when told to turn, fix the convention (motor direction, encoder sign, where zero is), not the math. Most mecanum bugs turn out to be one reversed motor. See angle wrapping for the seam.
Units
Derivations use SI unless a section explicitly labels another unit. The equations remain dimensionally valid in any consistent unit system; FTC snippets may use inches when variable names or comments state that choice. Convert once at a hardware or library boundary and never mix unit systems in one calculation:
- Encoder ticks → real units happens in exactly one constant
(
METERS_PER_TICK) — see From Math to a Loop. - Loop time is always the measured elapsed seconds, never an assumed constant.
- Motor commands are computed in volts, then divided by the measured battery voltage — see voltage compensation.
Recurring symbols
Indices, increments, and decorations
These show up in almost every equation on the site.
| Symbol | Meaning |
|---|---|
| subscript | the control loop index. is the value this loop, the value next loop. It counts loops, not seconds |
| subscript | an index into a list: path points, samples, wheels. Position in a collection, never time |
| the measured seconds between loop and loop | |
| how far the robot moved and turned during one loop | |
| first and second derivative with respect to time: is a velocity, an acceleration | |
| an estimate of , not a measurement of it | |
| (bold) | a vector or matrix; the same letter unbolded is a single number |
| transpose: rows and columns swapped | |
| the length of vector |
So a line like reads: the state vector at the next loop is some function of the state now, plus how far the robot moved and turned in between.
Pose & geometry
| Symbol | Meaning | Unit |
|---|---|---|
| field-frame pose: position + heading | m, m, rad | |
| linear speed, angular velocity | m/s, rad/s | |
| path curvature (radius ) | 1/m |
Control
| Symbol | Meaning |
|---|---|
| (or setpoint) | the target value |
| (or measurement) | what the sensor reports |
| error — heading errors always wrapped to | |
| the actuator command the controller outputs | |
| PID gains (present, past, trend of the error) | |
| feedforward: static friction, velocity, acceleration | |
| gravity hold (constant for slides, for arms) | |
| the mechanism's real speed and acceleration limits |
The same two feedforward terms go by other names in some lessons, following the code they come from:
| Name | Where it's used | Same as |
|---|---|---|
| the F in the PDFL controller | , the gravity hold | |
| the L in the PDFL controller | , the static-friction push | |
kStatic | path followers | , applied only near the target |
Motors
| Symbol | Meaning | Unit |
|---|---|---|
| applied voltage, winding current, winding resistance | V, A, Ω | |
| torque constant: | N·m/A | |
| back-EMF constant: | V·s/rad | |
| torque (context makes clear when is a time constant instead) | N·m | |
| rotational inertia | kg·m² |
Estimation
| Symbol | Meaning |
|---|---|
| the estimate of the state (the hat always means "estimate") | |
| a sensor measurement | |
| covariance of the estimate (its uncertainty) | |
| process-noise and measurement-noise covariance — the two tuning knobs | |
| Kalman gain: how much of the innovation to believe | |
| measurement matrix/Jacobian: state space → sensor space | |
| (low-pass) | weight on the new reading, |
| (complementary) | weight on the prediction, , the opposite of the row above |
| a filter time constant | |
| in the matrix Kalman filter: how the state moves on its own () and how a command changes it () |
Naming in the algorithms
Every algorithm is shown in Java, usually just the method the lesson is about. The rest of the program,
like helper methods, tuned constants, and hardware setup, is left for you to write, so most blocks
won't run if you paste them in on their own. Some blocks do call the FTC SDK directly (setPower,
getVoltage) where that call is the point of the lesson.
The code is written for Java 8, which is what the FTC SDK compiles by default. Names follow ordinary
Java: lowerCamelCase for variables and methods, SCREAMING_CASE for tuned constants. Comments only
give units and ranges. Anything worth working out by hand comes after the block as an Exercise,
often with a hidden solution.
The names match the math: kP, kV, kG for gains, dt for measured loop time, wrap(angle) for
wrapping to , and Pose2d, Vector2d, PoseSample, and moveStatus(...) from
Common Implementation, spelled the same everywhere.