wiki:FRCSoftwareSetup

Version 15 (modified by David Albert, 7 years ago) (diff)

--

Setting Up Your Computer for FRC Java Programming

1. Install Java SE 8

Make sure the correct version of Java SE 8 is installed. You will need the JDK (Java Software Development Kit); the current version is JDK 8u101.

The installation can be found on Oracle's site. Make sure to accept the license agreement, or it won't let you download.

2. Install Microsoft Visual Studio Code (VSC)

3. Installing CAN Talon stuff

In their infinite wisdom, WPI decided to unbundle any library that interfaces with actual stuff a couple months before build. I can't see anything going wrong with that. Because of this, you have to download the cantalon library manually from CTR's site.

  1. Download the Cantalon libraries from http://www.ctr-electronics.com//downloads/lib/CTRE_FRCLibs_NON-WINDOWS_v4.4.1.9.zip (up to date as of 1/14/17)
  2. Merge the java/lib folder in the archive with the WIPLib lib folder. This should be in C:\Documents and Settings\[user]\wpilib on Windows or your home folder on Linux. If you use Mac OS X, you're going to have to install a decent operating system on your computer.

5. Creating a FRC Java Project

  1. In Eclipse, right-click in the open space in the Package Explorer and select New >, and then inside the sub-menu that pops up, select Project.... Selecting Java Project... will not work.
  2. Under WPILib Robot Java Development, select Robot Java Project.
  3. After clicking next, if creating a FRC Java Project for the first time, there will be a prompt for team number. Enter
    2537
    
  4. In the next screen, specify a unique, identifiable project name, preferably one that will not be confused with other, similar projects. Enter in a new, custom package hierarchy or leave the default.
  5. Choose a project template:
    1. Iterative - cyclic program execution; your code is repeated every 20 ms
    2. Command-Based - event-driven program execution
    3. Simple - DO NOT USE
  6. Click Finish.