![]() |
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! |
Re: Team 254 2013 FRC Code
The link is 404ing for me.
EDIT: Now it's working, thanks 254! |
Re: Team 254 2013 FRC Code
Works fine here.
|
Re: Team 254 2013 FRC Code
Quote:
|
Re: Team 254 2013 FRC Code
The auto hang code is amazing!
Quote:
Also, why does your code style talk about enums, even though they aren't available in JDK 1.4? |
Re: Team 254 2013 FRC Code
Quote:
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. |
Re: Team 254 2013 FRC Code
Quote:
|
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?
|
Re: Team 254 2013 FRC Code
Quote:
|
Re: Team 254 2013 FRC Code
Quote:
|
Re: Team 254 2013 FRC Code
Quote:
|
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?
|
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.
|
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.
|
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