Go to Post Don't give up on others. I believe in killing grumps with a smile! - maltz1881 [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 08-03-2010, 21:11
LukeS LukeS is offline
4272 mentor, 1024 alumnus
AKA: Luke Shumaker
FRC #4272
Team Role: Mentor
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Indianapolis, IN
Posts: 60
LukeS is an unknown quantity at this point
1024's code

Here are complete copies of 1024's code for our 2009 and 2010 bots, in Java.

We meant to post this earlier, but never got around to it. The DC regional made it clear that this would have helped a few teams during build season, so here is 1024's code.

2009: Lunacy - reimplemented in Java
Here is a Java-reimplementation of 1024's Lunacy code. It is pretty faithful to the original LabVIEW code we wrote last year, except it doesn't have traction control (you can see where it should be in the `org.mckenzierobotics.y2009.TeamCode.drive' class (a method exists, but it is empty)). At several places, I don't understand what is going on, I just re-implemented what my LabVIEW code said, though I don't remember why it works. What's nice though, is that this code is fairly complete. Something that may be worth noting: if a class starts upper-case, that means that it was directly a VI in LabVIEW, opposite for lower-case. Also, note that all of my code for this bot is released under the GNU GPL 2+.

2010: Breakaway
I'll upload our code for this year's bot later, I only have an old copy on this computer. Naturally, this code is still evolving. Also, this is released under a BSD-3 license


Something that other people have a problem with when looking at our code, is understanding how we abstract things. In both projects, we have a `Control' class that is used as a way for Autonomous or Teleop to interact with the robot. Neither Autonomous or Teleop EVER touch hardware on the Robot directly. People normally have a hard time wrapping their minds around this, but when they do it makes a lot of sense.

Both of these have Mercurial repositories, so you can see how they evolved... though our comments aren't always helpful. We have pretty good Javadocs for both (also anormdun here (Andrew Dunlap) insists on being referred to as `LOLCAT' in the code)

Last edited by LukeS : 08-03-2010 at 22:19. Reason: typo
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
pic: 1024's appetite for destruction. J SMITH Extra Discussion 21 15-09-2008 17:42
pic: 1024's Fix-It/Practice Qbranch Extra Discussion 8 07-04-2008 11:53
pic: 1024's Toughened Toughbox Qbranch Extra Discussion 3 19-02-2008 21:01
pic: Q in arctic - nah just in indy - 1024's stompin ground Qbranch Extra Discussion 13 06-02-2007 17:29
problems using gyro/adc code with camera default code tanstaafl Programming 7 22-01-2006 23:09


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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