Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   General Forum (http://www.chiefdelphi.com/forums/forumdisplay.php?f=16)
-   -   Team 254 2013 FRC Code (http://www.chiefdelphi.com/forums/showthread.php?t=116660)

Tom Bottiglieri 03-05-2013 17:49

Team 254 2013 FRC Code
 
Hi everyone,

Now that the official 2013 FRC season has come to a close, we would like to share the software that drove Overkill with the FIRST community. We have released our code to the public every year since 2010 and the programming sub team is especially proud of the work they have put together for the 2013 submission.

This year we made the switch from C++ to Java. We did this as the Java tools can be run on any platform and are freely available to download on the Internet, which made it very easy for our students and mentors to hit the ground running and contribute commits. Java is also taught in the school, so we figured this would be a great way for students to apply the skills they are learning in the classroom.

https://github.com/Team254/FRC-2013

If you have any questions please do not hesitate to ask... We love talking about our work! Also please feel free to try/learn from/re-use this code as much as you see fit.

Thanks!

Kusha 03-05-2013 17:50

Re: Team 254 2013 FRC Code
 
The link is 404ing for me.

EDIT: Now it's working, thanks 254!

JesseK 03-05-2013 17:53

Re: Team 254 2013 FRC Code
 
Works fine here.

Tom Bottiglieri 03-05-2013 17:54

Re: Team 254 2013 FRC Code
 
Quote:

Originally Posted by Kusha (Post 1272059)
The link is 404ing for me.

It took a second for the repo to go public (we use Github's private repo feature to develop our code). Check again now!

hiyou102 03-05-2013 18:20

Re: Team 254 2013 FRC Code
 
The auto hang code is amazing!

Quote:

Originally Posted by Tom Bottiglieri (Post 1272062)
(we use Github's private repo feature to develop our code).

Do you guys use the educational offers that GitHub has? If you don't, you should consider it. My team got a 2 year bronze plan for free that way.

Also, why does your code style talk about enums, even though they aren't available in JDK 1.4?

Pat Fairbank 03-05-2013 18:27

Re: Team 254 2013 FRC Code
 
Quote:

Originally Posted by hiyou102 (Post 1272069)
Do you guys use the educational offers that GitHub has? If you don't , you should consider it. My team got a 2 year bronze plan for free that way.

Also, why does your code style talk about enums, even though they aren't available in JDK 1.4?

One of our leaders got in touch with GitHub a few years back and got us free private repos. We have more than 10 so I'm not sure what plan we're on, but we haven't been sent a bill so I'm not about to complain. :)

We ported the style guide over from our C++ one before discovering the (many) limitations of Java ME. Enums aside, we could have made the constants management stuff a lot cleaner with generics and reflection.

joelg236 03-05-2013 19:08

Re: Team 254 2013 FRC Code
 
Quote:

Originally Posted by Pat Fairbank (Post 1272075)
We ported the style guide over from our C++ one before discovering the (many) limitations of Java ME. Enums aside, we could have made the constants management stuff a lot cleaner with generics and reflection.

Generics... I wish... :(

joelg236 03-05-2013 21:00

Re: Team 254 2013 FRC Code
 
I did a diff on your CheezyGyro class, and the only important change was making initGyro() public. Is this only to calibrate the gyro when you want to? Why didn't you just adjust it in the wpilibj and compile with the custom version?

BigJ 03-05-2013 21:04

Re: Team 254 2013 FRC Code
 
Quote:

Originally Posted by joelg236 (Post 1272135)
I did a diff on your CheezyGyro class, and the only important change was making initGyro() public. Is this only to calibrate the gyro when you want to? Why didn't you just adjust it in the wpilibj and compile with the custom version?

Then anyone checking it out would have to have the modified WPILibJ

joelg236 03-05-2013 21:05

Re: Team 254 2013 FRC Code
 
Quote:

Originally Posted by BigJ (Post 1272137)
Then anyone checking it out would have to have the modified WPILibJ

I suppose so. Although who would compile it? Not everybody has an Overkill :p

BigJ 03-05-2013 21:07

Re: Team 254 2013 FRC Code
 
Quote:

Originally Posted by joelg236 (Post 1272138)
I suppose so. Although who would compile it? Not everybody has an Overkill :p

Any other 254 programmer with a new dev environment? :p

joelg236 03-05-2013 21:07

Re: Team 254 2013 FRC Code
 
Another question, I haven't seen a single final variable, even in cases where I can't see a good reason not to. Any reasoning behind that or is it just because you know you won't write code to mess with them?

xmaams 03-05-2013 22:31

Re: Team 254 2013 FRC Code
 
You actually can use the DPad up and down if the switch on the controller is set to D. Then it is axis 6.

apb2390 03-05-2013 22:41

Re: Team 254 2013 FRC Code
 
My compliments to Team 254's Programming team and mentors. That's some beautifully structured code you have there. I especially love how elegant your seven disc auto sequence is.

xmaams 03-05-2013 22:57

Re: Team 254 2013 FRC Code
 
Could you explain the purpose of the negative inertia maths in CheesyDriveCommand.java? Is it to limit the change in PWM?


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

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