$ sekerace --derive
the drive
a = v²/rcornering is acceleration — the tyres pay for it
vmax = √(μ·g·r)grip sets the speed limit, not the motor
v̇ = −k·vdrag bleeds speed every metre — lift off and it shows
a = min(F/m, P/mv)the motor is a power source — flat launch, fading pull
the controller
e = θaim − θsteering is an error signal — measure, correct, repeat
u = clamp(kp·e)proportional control — the same loop, every frame
v* = min √(g·r(s))brake for the tightest corner you can see, not the one you're in
the circuit
κ = dθ/dscurvature — direction change per metre of road
t = r/tan(θ/2)every bend is a fillet — a straight, an arc, a tangent distance
r → ∞a straight is a corner with infinite radius — drive accordingly
the soundtrack
Δf = 2n/12equal temperament — the twelfth-root-of-two that lets a fugue work in every key
J.S. BachWTC I · prelude & fugue no. 2, BWV 847 — hear it on circuit + open wheel
perf. K. Ishizakaopen well-tempered clavier · CC0 public domain