Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Team 316 2013 Robot Code (C++/Java) (http://www.chiefdelphi.com/forums/showthread.php?t=116886)

Domenic Rodriguez 14-05-2013 22:42

Team 316 2013 Robot Code (C++/Java)
 
Here's Team 316's code for our 2013 robot, Sure Shot SAM: https://github.com/LuNaTeCs-316/SureShotSAM

This was our first year using C++, having used LabVIEW in the past. Our program is based on the IterativeRobot template. It should be fairly well documented, although some sections like the autonomous definitely need work.

I've also been working on a couple of Java ports of our code, as that's what we're looking into using for next year. One uses the IterativeRobot and the other Command Based.

- Domenic

joelg236 14-05-2013 23:22

Re: Team 316 2013 Robot Code (C++/Java)
 
I'm curious, why did you port it to Java?

Also, what's it like to port to Java - is there anything you didn't anticipate to be a problem?

Domenic Rodriguez 15-05-2013 16:00

Re: Team 316 2013 Robot Code (C++/Java)
 
I ported it to Java because that's what we are looking into using for next season. We're making the switch because Java seems to have better support than C++, especially with the newer features like NetworkTables/Command Based Robot/SmartDashboard. Java as a language should be easier to teach to new students than C++. Also, the Java development environment is easier to setup IMO, and offers the advantage of being cross-platform.

Porting the code over to Java was pretty easy, since the Java and C++ versions of WPILib are very similar. It was just a matter of rewriting the same code with a different syntax. I haven't had an opportunity to test it on a robot yet, so we'll see if anything comes up in that process.


All times are GMT -5. The time now is 03:03.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi