Module 12 — Math & theory you'll keep reaching for
A pocket reference. Skim now, return forever. Everything here already appeared in context in earlier modules.
🟢 Vectors & trig. A vector has length and direction; you'll use the dot product ( — projections, "how aligned") and cross product ( — torque, rotation axes) daily. SOH-CAH-TOA decomposes thrust into components; recovers angles without quadrant bugs.
🟡 Rotations. A yaw by angle is the matrix
Chaining Euler angles (roll·pitch·yaw) is intuitive but suffers gimbal lock at ±90° pitch. Firmware therefore stores attitude as a quaternion — 4 numbers, no singularities; composition is quaternion multiplication (order matters!). Rule of thumb: quaternions inside the code, Euler angles on the OSD for humans.
🟡 Calculus in one paragraph. The derivative is instantaneous rate of change (gyro = derivative of angle); the integral is accumulation (angle = integral of gyro, which is why gyro bias becomes drift). PID literally is one signal plus its integral plus its derivative.
🔴 Dynamics & the 2nd-order template. Half of control intuition is the mass–spring–damper:
Overshoot , settling time . When a reviewer says "add damping", they mean raise .
🔴 Frequency domain. Any signal is a sum of sinusoids (Fourier); the FFT computes the recipe — that's your spectrogram. The Laplace transform turns differential equations into algebra ( = differentiation), giving transfer functions and Bode plots. Nyquist: sampling at can only represent content below ; above it, aliasing manufactures lies.
🔴 Probability for estimation. Mean, variance, and the Gaussian are the vocabulary of the Kalman filter: every sensor is a Gaussian around the truth; fusing two Gaussians yields a narrower one — that is sensor fusion in one sentence.
⚫ Numerics & linear algebra. Simulators integrate the equations of motion — Euler integration () is simple but drifts; RK4 buys accuracy per step. Eigenvalues of the closed-loop matrix decide stability (all in the left half-plane / inside the unit circle); this is the bridge to LQR and modern control.
| If you're doing… | You're using… |
|---|---|
| Reading a spectrogram | Fourier / Nyquist |
| Tuning P and D | 2nd-order response, , |
| Trusting GPS vs baro | Gaussian fusion / Kalman |
| Angle mode math | Rotation matrices / quaternions |
| Writing a simulator | Numerical integration (RK4) |
| Mixer & torque | Cross products, moments |
📚 Free resources: 3Blue1Brown "Essence of linear algebra" & "Essence of calculus"; Brian Douglas control playlists; MIT OCW 18.06; interactive quaternion visualizer (eater.net/quaternions).