Skip to content

Code Examples

Real code from XBot's competition robots. Each example links to the live source on GitHub.

Available Examples

ExampleSourceDescription
Elevator LogicTeamXbot2025Calibration, sensor fusion, motion magic, soft limits
Swerve Drive CommandTeamXbot2026Teleop driving with field orientation and heading snapping
Simple Motor SubsystemSeriouslyCommonLibBase class for simple forward/reverse mechanisms
Maintainer PatternSeriouslyCommonLibContinuous PID maintenance with human override

How to Read These Examples

  1. Each example shows the key concepts with simplified code
  2. Click the GitHub link to see the full, up-to-date source
  3. Code comments explain what each section does
  4. Compare examples to see patterns reused across subsystems

Built for XBot Robotics Team 488