Version 15 (modified by 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)
- Follow the instructions on ScreenstepsLive to download and install Download and install VSC and the latest WPILib VSC extension
- ScreenstepsLive instructions on using are here
- Note: the 2015-2018 Seasons used Eclipse instead of VSC; see instructions for installing here
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.
- 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)
- 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
- In Eclipse, right-click in the open space in the Package Explorer and select
New >
, and then inside the sub-menu that pops up, selectProject...
. SelectingJava Project...
will not work. - Under
WPILib Robot Java Development
, selectRobot Java Project
. - After clicking next, if creating a FRC Java Project for the first time, there will be a prompt for team number. Enter
2537
- 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.
- Choose a project template:
- Iterative - cyclic program execution; your code is repeated every 20 ms
- Command-Based - event-driven program execution
- Simple - DO NOT USE
- Click
Finish
.