Skip to content

Curriculum Overview ​

Welcome to the XBot programming curriculum. You will go from writing your first Java code to making a robot drive itself. No programming experience is needed. The curriculum starts from zero and teaches you everything step by step.

The path is two parts: Setup, then the Challenges, in order. Each step builds on the one before it, so don't skip ahead.

Step 1: Setup ​

Get your accounts, tools, and a copy of the code before you write anything.

#StepWhat You Will Do
1OnboardingSet up accounts and install the software you need
2Environment SetupFork the practice project and open it in IntelliJ

New to Java?

If you don't already feel comfortable with Java, read Java Basics before the challenges. It covers the minimum you need to get started. If you already know Java, skip it.

Done with Setup? Start the challenges below with Basic Robot Principles.

Step 2: Challenges ​

Hands-on exercises in the XbotEdu practice project you set up in Step 1. Each one has unit tests, so you can check your own work without a physical robot.

#ChallengeWhat You Will Build
1Basic Robot PrinciplesWatch the command scheduler run, and see commands conflict
2Tank DriveDrive a robot with two joysticks
3Altering Tank DrivePrecision mode and arcade drive, mapped to buttons
4Moving to a Target PositionDrive to an exact distance and stop there
5Making a Pull RequestSubmit your work for review
6Rotating to a Target OrientationTurn to a heading, including the tricky angle math
7Command GroupsCombine commands into an autonomous square
8Providers & FactoriesReading: how the team's code creates objects it cannot build directly
9Dependency InjectionReading: why your classes are handed what they need, and how
10Upgrading Using the SeriouslyCommonLibReplace your own control code with the team's library
11Running on a Real RobotDeploy your code to a RoboRIO
12Auto-stopping CollectorBuild a subsystem and commands from scratch

Before the Auto-stopping Collector

This is the first time you write a class from scratch rather than filling in a method. Get comfortable with classes and objects in Object-Oriented Programming first.

Once those are done, there is one more, considerably harder:

AdvancedWhat You Will Build
Advanced Swerve ChallengesDrive a swerve chassis: steer and drive each module independently

What's Next? ​

After finishing the curriculum, move on to Core Programming to learn the patterns the competition code is built on: maintainers, swerve drive, properties and tuning.


Reference ​

You don't need to read these up front. The challenges link to them when they're relevant, and you can come back to them any time.

Going deeper on Java ​

Java Basics is deliberately short: just enough to start driving a robot. These pages go further. Work through them alongside the challenges rather than before them.

PageWhat It Covers
Object-Oriented ProgrammingEncapsulation, inheritance, polymorphism, abstraction
Intermediate JavaGenerics, lambdas, Optional, collections, streams, enums

Robot and tooling background ​

PageWhat It Covers
Running the SimulatorDrive your code on a virtual field, and watch it in AdvantageScope
Robot ArchitectureSubsystems, Commands, the Scheduler, and how they fit together
Robot Coordinate ConventionsWhich way is positive, for both the robot and the field
Mapping Buttons to CommandsBinding commands to gamepad buttons
Command GroupsRunning commands in sequence and in parallel
Git IntroductionWhat source control is, and the terms you will see
Clone with GitHub DesktopGetting a copy of a repository onto your computer

In-season ​

Programming on the competition robot during the season? In-Season Onboarding covers the extra hardware tools you will need.

AI tools ​

PageWhat You Will Learn
AI Tools SetupConfigure and initialize OpenCode
Built-in CommandsSlash commands, undo, share, custom commands
Workflow TipsWriting prompts, Plan vs Build mode
Responsible AI UseEthics, code review, simulation, safety

Built for XBot Robotics Team 488