![]() |
Robot Base Code
Hey, I am the programmer on team 4334 (ATA) and I've been working on a bare-bones base code that allows for relatively easy insertion of specific stuff, but its mostly useful because of all the features it allows you to implement.
I just started to learn java in week 2 of build season (Built my first tic-tac-toe game the first day of week 2 :D) and ended up actually taking over our programming team. We didn't have a mentor this year to help with programming, and basically it has consisted of me, someone else who comes in occasionally and chief delphi as a guide :). Because we didn't have a mentor, I'm gonna bet that there a lot of things that I do in a different way then most programmers, but for this I decided to document it fully (At least as much as I have ever done) to aide in other team's understanding of what's going on. I would really appreciate it if you gave it a look or two, and told me what you think. (Specific changes to be made, general style, ways to do things more effectively, opinion about the javadocs, etc.) I'd really like this to turn into something I will continue to update throughout summer, fall and build season for other teams (New and old alike). Maybe even I could work with some of you guys to improve it (Because naturally, more experience = better quality code). Thanks for your time, hope you enjoy ! Joel |
Re: Robot Base Code
My main criticism would be on confusing naming, which is just a readability nit-pick, though that's just due to my coding standard (which nobody else is obligated to follow, of course).
(Ex: autonomous() implies runAutonomous() as opposed to getAutonomousThread()) --- Other things to think about: The system might be a bit strange to work with if you try to mix autonomous methods with teleoperated methods. Autonomous-ish methods were used in games like Breakaway and Logomotion, for line following, and goal alignment in Rebound Rumble. We tried the following, and it worked pretty decently: Shooter - Calculus Bazooka Bridge Knockdown Mechanism: Del Operator Tower - Transported ball collection mechanism to shooter. Code:
public class SubsystemControlStateCode:
/**Code:
public void teleopPeriodic() |
Re: Robot Base Code
Release V0.1.0 is out.
Available here. Please, feel free to tell me what you think of it. (The good, bad and ugly) I only aim to continue to improve it. Regards, Joel from Team 4334. |
| All times are GMT -5. The time now is 10:12. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi