Skip to content

Core Programming

Advanced patterns used by XBot to build robust, testable robot code.

You should complete the Curriculum before starting these modules. They build on the basics you learned there.

Modules

ModuleWhat You Will LearnTime
Dependency InjectionHow Dagger wires everything together automatically30 min
Providers & FactoriesCreating objects with runtime parameters20 min
Command-Based ProgrammingWPILib's command framework30 min
MaintainersContinuous PID maintenance with human override25 min
Swerve DriveHolonomic driving with independent wheel control40 min
Properties & TuningRuntime-tunable values for quick iteration15 min

Why These Patterns Matter

These patterns solve real problems that come up when writing robot code:

  • Dependency Injection keeps your code testable (swap real hardware for mocks)
  • Factories let you create objects with values only known at runtime
  • Maintainers handle the transition between human and automatic control
  • Properties let you tune values without rebuilding code

Each module links to the actual XBot source code so you can see how the patterns are used in competition robot code.

Built for XBot Robotics Team 488