This is the the robot code for Redwarf, a veteran offseason robot that competed in Madtown Throwdown 2017.
- Install Intellij IDEA.
- Clone this repo
git clone https://github.com/Team4159/FRC-2017-Offseason
- Setup your
JAVA_HOME
path. Go to your~/.bashrc
,~/.zshrc
, etc. or/etc/profile
to make this available to all users besides yourself. Addexport JAVA_HOME=\`/usr/libexec/java_home\`
to that file. This will be it for terminal work, but since IntelliJ is a graphical interface, also runlaunchctl setenv JAVA_HOME `/usr/libexec/java_home`
. - Open up IntelliJ. Import a new project. Navigate to the cloned directory and open
build.gradle
. - Run
./gradlew idea
to generate IDE files for IntelliJ.
Optional IntelliJ settings:
- Enable auto import
- Set tabs to equal four spaces
- Set gradle configurations to run gradle commands in IntelliJ
Using gradlew:
You can set gradle commands in IntelliJ. For example the run button would run ./gradlew deploy
.
Or you can simply run them in the command line.
./gradlew build
will build your Robot Code../gradlew deploy
will build and deploy your code../gradlew riolog
will display the RoboRIO console output on your computer../gradlew smartDashboard
will launch Smart Dashboard.
Reference here for more info and up to date commands.
- GradleRIO - https://github.com/Open-RIO/GradleRIO