module 2 of 13
Learn how a robot program is structured and runs. Start with TimedRobot's lifecycle, then adopt the command-based framework — the modern, recommended way to organize FRC code with Subsystems, Commands, and Triggers.
The Robot Program: Lifecycle and Command-Based Architecture is module 2 of 13 in the Programming, Controls & Sensors guide. It picks up where Foundations: Tools, Languages, and Your First Robot Program left off and hands over to Motors, Sensors, and Closed-Loop Control. Its 4 lessons are about 160 minutes of the guide's ~30 hours.
what is behind this tab
you can read them out of order, nothing is locked
words this module uses without explaining
when it breaks, not how it works
| no. | module | lessons |
|---|---|---|
| pre | Programming Foundations: A Java Primer | 4 |
| 01 | Foundations: Tools, Languages, and Your First Robot Program | 4 |
| 02 | The Robot Program: Lifecycle and Command-Based Architectureyou are here | 4 |
| 03 | Motors, Sensors, and Closed-Loop Control | 4 |
| 04 | Autonomous: Odometry, Trajectories, and Simulation | 4 |
| 05 | Sensing Fundamentals: Digital, Analog, and CAN Inputs | 3 |
| 06 | Encoders: Measuring Position and Velocity | 3 |
| 07 | Gyros, IMUs, and Orientation | 3 |
| 08 | Closed-Loop Control: PID, Feedforward, and SysId | 4 |
| 09 | Computer Vision and Pose Estimation | 3 |
| 10 | Worked Examples and Mini-Projects | 5 |
| 11 | Common Mistakes and Troubleshooting | 5 |
| 12 | Advanced Techniques and Case Studies | 5 |