Once you have learned some basic Java, you're ready to start writing your first robot programs. All of the Java skills you learned are directly applicable to robot programming; if you haven't finished the first Java Programs above, you should do so now. Writing Java programs to control a robot is similar to the Java programming you've already learned; there are three key differences:
The program you write must be transferred to the robot's computer (the roboRIO) where it will run
FIRST and WPI provide a framework that your robot program must run within; the framework manages many aspects of the robot for you.
WPI also provides a rich library of pre-written classes called WPIlib that makes robot programming faster and easier.
To run your robot code, you'll need a few things.
The examples below will teach you to program and use each part of an FRC robot; you should do them in order as they build on each other:
To develop and run robot software you will need:
A training robot such as one of 2537's peanut training robots OR
A robot simulator such as BXD Synthesis (training examples for Synthesis are coming soon)
A laptop running Windows 7, 8, or 10. The laptop should be setup as described here.
Note: you can do most things on a Mac/Linux machine but you can only drive a real robot using a Windows laptop.
A controller to drive your robot: either a USB Joystick OR a USB Xbox Controller or a clone or a Logitech F310 game controller
Optional: USB A-B cable