1 | | = Java for FRC Robotics = |
2 | | Writing Java programs to control a robot is similar to the Java programming you've already learned; there are three key differences: |
3 | | 1. The program you write must be transferred to the robot's computer (the roboRIO) where it will run |
4 | | 2. FIRST and WPI provide a framework that your robot program must run within; the framework manages many aspects of the robot for you. |
5 | | 3. WPI also provides a rich library of pre-written classes called WPIlib that makes robot programming faster and easier. |
6 | | |
7 | | * [wiki://ControlSystems/SoftwareTeam/Training/GettingStarted/XboxController Xbox Controller] |
8 | | * [wiki://ControlSystems/SoftwareTeam/Training/GettingStarted/UltrasonicRangefinder Ultrasonic Rangefinder] |
9 | | * [wiki://ControlSystems/SoftwareTeam/Training/GettingStarted/ServoMotor Servo Motor] |
10 | | * [wiki://ControlSystems/SoftwareTeam/Training/GettingStarted/DCMotor DC Motor Control] |
11 | | * [wiki://ControlSystems/SoftwareTeam/Training/GettingStarted/Encoders Encoders] |
12 | | * [wiki://ControlSystems/SoftwareTeam/Training/GettingStarted/Autonomous Autonomous] |
13 | | * [wiki://ControlSystems/SoftwareTeam/Training/GettingStarted/ClosedLoopControl Closed Loop Control] |
14 | | |
15 | | == Study some examples |
16 | | Learn more about robot programming by studying some simple example programs. Run them, study what they do, and incrementally expand their functionality. The WPILib software you installed includes example programs that you can compile and run on a RoboRIO. Review [https://wpilib.screenstepslive.com/s/currentCS/m/79833/l/941601-vs-code-basics-and-wpilib-in-vs-code how to use VSCode] and then try [https://wpilib.screenstepslive.com/s/currentCS/m/79833/l/932465-creating-a-new-wpilib-project-in-vs-code creating a new robot project]. |
| 1 | == More Java Robot Examples |
| 2 | Learn more about robot programming by studying more simple example programs. Run them, study what they do, and incrementally expand their functionality. The WPILib software you installed includes example programs that you can compile and run on a RoboRIO. Review [https://wpilib.screenstepslive.com/s/currentCS/m/79833/l/941601-vs-code-basics-and-wpilib-in-vs-code how to use VSCode] and then try [https://wpilib.screenstepslive.com/s/currentCS/m/79833/l/932465-creating-a-new-wpilib-project-in-vs-code creating a new robot project]. |