Log in

View Full Version : Getting started with Java for FRC


Coach Seb
13-12-2016, 16:25
Hello everyone !

We are a second year team with very limited programming experience.

Our FTC team switched to Java this fall and it was a very successful move. We are planning on doing the same with our FRC team since we are building the skills and want to keep up with it.

Setup up Android Studio was ok, but not easy. We were fortunate enough ot find some good documentation and people to help wiht the FTC SDK and gettitng everything setup properly.

Is there such a thing for FRC? I would like to find somewhat of a check list to make sure that everything on laptop is setup properly... eclipse, jave sre and other....

If you know of good site or documentaiton, please post.

Thanks in advance

Ty Tremblay
13-12-2016, 16:28
Here's the official documentation from WPILib:

https://wpilib.screenstepslive.com/s/4485

phurley67
13-12-2016, 17:09
And after you are setup, checkout https://wpilib.screenstepslive.com/s/4485/m/26402 It will walk you through using robotbuilder and get you started, with well structured code.

euhlmann
13-12-2016, 19:21
Here's the full javadoc (API reference) for wpilib: http://first.wpi.edu/FRC/roborio/release/docs/java/

BenBernard
19-12-2016, 22:21
Our team switched from Eclipse to IntelliJ last season, and I personally would never want to go back.

I put together a "getting started (https://github.com/frc5687/chassisbot/wiki/Getting-Started)" page for our new programmers, with links to all the tools we use and pretty detailed instructions. It comes with no warranties, but you are welcome to use it. Our github site also includes our Recycle Rush and Stronghold code as well as some off-season projects.

Jayd009
20-12-2016, 09:57
I did a presentation this Fall on the basics of FRC Java Programming. You can view the recording, powerpoint file, and all of the example code at http://www.fernbanklinks.com/first-competition/introduction-to-java/. My team also stored our robot code from last year at https://github.com/FernbankLINKSRobotics/GRITS16.

Coach Seb
20-12-2016, 10:34
Can Robotbuilder still be used with IntelliJ?

What are the main advantages of InteliJ vs Eclipse?

I am almost starting from scratch here.. very little java experience, but i am relying on Robotbuilder and the WPI documentation to get started... can IntelliJ support that?

phurley67
20-12-2016, 11:29
Can Robotbuilder still be used with IntelliJ?

RobotBuilder is a completely separate program. You can create a shortcut, run it from the command line, etc. You just have to install WPILib and you have it. It is not linked to Eclipse, the WPILib plugin for Eclipse, includes a handy shortcut for RobotBuilder. Using IntelliJ you can do the same. (https://www.jetbrains.com/help/idea/2016.3/external-tools.html)

What are the main advantages of InteliJ vs Eclipse?

This is a more personal question. If you are happy with Eclipse, I would not bother. Personally IntelliJ has better VIM bindings (I am an old guy with old finger memory), and a nice presentation mode for displaying code on a projector; however, both are pretty impressive.

very little java experience, but i am relying on Robotbuilder and the WPI documentation to get started... can IntelliJ support that?

Given that, if I were you I would use Eclipse this year, if over the summer you want to play with IntelliJ, make sure it works for you etc. Go for it, but why add one more moving part when you are still trying to find your footing?

Coach Seb
20-12-2016, 12:22
thank you ! ill stay with eclipse to eliminate any confusion this year...