Java

From FRC11 - Mentor Wiki
Revision as of 07:58, 21 October 2018 by Dsteinmark (talk | contribs) (→‎About)
Jump to navigation Jump to search

About

Java is the language we use primarily to program the FRC robots. It is a general purpose, object oriented programming language that can do almost any variety of tasks. It works hand-in-hand with WPI Lib to control the robot.

WPI Lib is the set of libraries - low level software designed to control the hardware - that interfaces with sensors and outputs, and interfaces with elements of the ‘’field’’ such as start and stop signals. Our Java programs need to include the WPI libraries and make calls to the Apllication Programming Interface (API) it provides.

Installing

Or manually with another IDE:

Documents, Guides, and References

Tutorial Videos

FRC Java Command-based Programming Tutorial Playlist (1.5 hrs)

  • FRC Java Programming Tutorial Part 1: Project Setup
  • FRC Java Programming Tutorial Part 2: Basic Drivebase
  • FRC Java Programming Tutorial Part 3: Setting up Tank Drive Controls
  • FRC Java Programming Tutorial Part 4: How to use TalonSRXs
  • FRC Java Programming Tutorial Part 5: Version Control
  • FRC Java Programming Tutorial Part 6: WPILIB PID

Note: when watching the videos, you should stop and look through the code that is discussed. Some minor items (such as imports) are glossed over. For example, if you have unreferenced calls in your code, compare the code on screen with what you have - you may have to import an additional library. Hover over unresolved items. Usually, you want to import the correct library.