28 | | 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; otherwise, go to: |
| 28 | 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: |
| 29 | 1. The program you write must be transferred to the robot's computer (the roboRIO) where it will run |
| 30 | 2. FIRST and WPI provide a framework that your robot program must run within; the framework manages many aspects of the robot for you. |
| 31 | 3. WPI also provides a rich library of pre-written classes called WPIlib that makes robot programming faster and easier. |
| 32 | Go through each of the examples below in sequence to learn how to program the various devices used in FRC robots: |
| 33 | |
| 34 | * [wiki://ControlSystems/SoftwareTeam/Training/GettingStarted/XboxController Xbox Controller] |
| 35 | * [wiki://ControlSystems/SoftwareTeam/Training/GettingStarted/UltrasonicRangefinder Ultrasonic Rangefinder] |
| 36 | * [wiki://ControlSystems/SoftwareTeam/Training/GettingStarted/ServoMotor Servo Motor] |
| 37 | * [wiki://ControlSystems/SoftwareTeam/Training/GettingStarted/DCMotor DC Motor Control] |
| 38 | * [wiki://ControlSystems/SoftwareTeam/Training/GettingStarted/Encoders Encoders] |
| 39 | * [wiki://ControlSystems/SoftwareTeam/Training/GettingStarted/Autonomous Autonomous] |
| 40 | * [wiki://ControlSystems/SoftwareTeam/Training/GettingStarted/ClosedLoopControl Closed Loop Control] |
| 41 | |