Skip to content

team61/frc-2019-robot

Repository files navigation

2019 First Robotics Robot

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

The items required to use this project:

  1. FRC 2019 Update Suite (http://www.ni.com/download/first-robotics-software-2017/7904/en/)
  2. Java SE Development Kit 8 (http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html)
  3. Any IDE. We prefer Intellij IDEA (https://www.jetbrains.com/idea/)
  4. CTRE Framework (http://www.ctr-electronics.com/hro.html#product_tabs_technical_resources)

Installing

A step by step installation guide to run this program on the Team 61 FRC Robot

  1. Get the FRC 2019 Update Suite by visiting their website and downloading the Update Suite. A encryption key may be necessary, if so, for 2019 it is: '$Robots&in#SPACE!!'. Be sure to uninstall any previous version of National Instruments software before starting. Extract the package that you have downloaded, and run the installer. For testing purposes, it is not necessary to activate the software if asked.

  2. Download the installer for the Java SE Development Kit 8 (any other version will not function properly with the 2018/2019 code) from this website. Make sure that the version downloaded fit the operating system of the computer you are testing on. Run the installer.

  3. Next, download the IDE you plan on using and run the installer if there is any.

  4. You might have to now set your JAVA_HOME variable, and if you do not know how to do this, you may find out here.

  5. Next, download the installer for the CTRE Toolsuite Legacy v4 from this website.

Setting up Intellij IDEA (Windows users only)

If you are not familiar with any IDE, and are having trouble using this program with an IDE, you can follow this step-by-step guide on setting up a workspace with Intellij IDEA. Although Visual Studio Code is the recommended IDE for FRC development, we primarily used IDEA and can therefore best write a guide on setting up IDEA. If you are interested in Visual Studio Code, there are some setup tutorials here.

  1. Download and install Intellij IDEA. The download link can be found here. Installation should be pretty easy if the installer is used.

  2. Open the 'build.gradle' file within the project and add the line: 'id "idea"' to the plugins section if it is not already there.

  3. Shift + right click on the directory you have pulled from this Github page, and open a Powershell window at the directory. Type the commands that follow to set up the IDEA environment:

./gradlew build
./gradlew idea
  1. The last step is to open IDEA, and click open on the Welcome screen or File | Open on the main menu, and select the project directory. You should now be able to work on the project within IDEA. If you are struggling with using IDEA, there is a good tutorial here.

Deployment

To run the robot code, connect your computer to the RoboRIO, either by USB or Ethernet/radio. Next, open a powershell window at the project directory, and type the command:

./gradlew deploy

The console in Driver Station is very helpful in debugging issues in a scenario where this does not properly work. Many useful messages can be found to help with problems that might be run into.

Built With

  • Java JDK - The language we used
  • WPILib - Libraries to program the FRC Robot

Contributing

Since the season is close to over, we will most likely archive this project from further contributions.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

About

BVT FRC Robot for 2019 Season

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors