Classical single-input PID control treats mechanisms as black boxes. While effective for simple velocity flywheels, classical PID struggles with coupled dynamics, flexible arms, or systems requiring aggressive, minimum-time setpoint tracking without overshoot.
Modern control theory represents systems using mathematical state vectors (). By pairing empirical characterization data from SysId with state-space representation, Linear-Quadratic Regulators (LQR) and Kalman filters compute provably optimal voltage commands that balance tracking speed against electrical current limits.
Lessons in This Module
Section titled “Lessons in This Module”-
SysId System Characterization (35 min): Integrate WPILib’s
SysIdRoutineinto your mechanism subsystems. Run automated quasistatic and dynamic voltage sweeps to measure , and with statistical confidence. -
State-Space Modeling, LQR & Kalman Filters (35 min): Construct state-space matrices () for mechanisms. Tune cost matrices and to compute optimal LQR gain matrices () and design Kalman filters (
KalmanFilter,LinearSystemLoop) for noise-resistant closed-loop tracking.
Verified Sources & Standards
- WPILib System Identification (SysId) Tooldocs.wpilib.orgWPILib Standard
- WPILib State-Space Control & LQRdocs.wpilib.orgWPILib Standard
Lessons
SysId System Characterization
Automated mechanism characterization using WPILib SysIdRoutine, data collection protocols, and regression curve analysis for kS, kV, kA, and kG.
State-Space Modeling, LQR & Kalman Filters
Formulating continuous-time state-space models, computing optimal Linear-Quadratic Regulator (LQR) gain matrices, and estimating unmeasured states with Kalman filters.