Skip to content
learnFRC.org
programmingcatalog

Programming & Control Systems Handbook

Theoretical foundations covering control theory, kinematics, CAN bus architectures, vision localization, and telemetry.

The Programming & Control Systems Handbook provides the mathematical foundations and architectural references for FRC robotics software. It is organized as a topical reference covering control theory, kinematics, network protocols, computer vision, and high-speed telemetry.

Theory to Practice

Each theoretical chapter directly references the production code implementations in the Mechanism Code Snippets section.

Browse

CAN Bus Architectures & Topologies

Network topologies, CAN 2.0 vs CAN FD, termination resistance, bus utilization bottlenecks, and status frame optimization.

Feedforward Control (kS, kV, kA, kG)

Why open-loop model-based feedforward handles 90%+ of motor voltage, and how to calculate and calibrate gains for real mechanisms.

High-Speed Telemetry & AdvantageScope

Structured data logging using WPILib DataLogManager, Epilogue annotation telemetry, NetworkTables 4, and visualizing match execution in AdvantageScope.

Kinematics, Odometry & Exponential Pose Integration

Mathematical transformations between chassis velocities and swerve module states, and integrating robot position on the field.

Motion Profiling & Motion Magic

Generating smooth kinematic trajectories with bounded velocity, acceleration, and jerk to protect robot mechanisms.

PID Control Theory & Anti-Windup

Intuitive and mathematical foundations of Proportional, Integral, and Derivative closed-loop feedback controllers.

Vision Localization & AprilTag Fusion

3D perspective-n-point pose estimation, Limelight MegaTag algorithms, and fusing vision measurements into swerve pose estimators.

Competition Pit Turnaround Checklist

A 10-minute pre-match inspection and diagnostic workflow to prevent on-field failures at regional and district events.

Git Workflows for FRC Teams

Version control branching strategies, commit discipline, and conflict resolution during build season and competitions.

Physics Simulation & Unit Testing

Writing automated JUnit tests for commands and simulating physical mechanisms on your laptop.

Software Safety Limits & Watchdogs

Implementing stator current limits, supply current limits, software travel limits, and watchdog timers to protect mechanical and electrical systems.

Remote CANcoder Closed-Loop Pairing

Configure motor controllers to execute closed-loop position and velocity routines directly from remote absolute CANcoders without roboRIO software lag.