Go to Post Have I ever poked fun at you? OK, maybe Heidi. and JVN. And Dave Lavery. and Andy Baker. and .... all right, I guess I deserve it. - Gary Dillard [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

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 03-02-2011, 17:53
classic_algebra's Avatar
classic_algebra classic_algebra is offline
Registered User
FRC #3419
Team Role: Programmer
 
Join Date: Sep 2010
Rookie Year: 2010
Location: New York, NY
Posts: 1
classic_algebra is an unknown quantity at this point
Our Team Code

Hello forum
I am a programmer for Team 3419
and we have posted all our code on google code
at this link
(it is in java)

We have so far been able to receive input from our photo sensors, camera, control jaguars, servos, connect to wireless, and all sorts of things.
With the camera, we can identify colours as well.

I am hoping that this may help rookie teams develop working code and maybe get some suggestions on how we can improve it.

Thanks y'all
Reply With Quote
  #2   Spotlight this post!  
Unread 03-02-2011, 18:17
davidthefat davidthefat is offline
Alumni
AKA: David Yoon
FRC #0589 (Falkons)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2010
Location: California
Posts: 792
davidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud of
Re: Our Team Code

Oh, are we using google code right? We currently have 41 revisions on there right now...
__________________
Do not say what can or cannot be done, but, instead, say what must be done for the task at hand must be accomplished.
Reply With Quote
  #3   Spotlight this post!  
Unread 04-02-2011, 19:47
MagiChau's Avatar
MagiChau MagiChau is offline
Registered User
AKA: Michael Chau
FRC #0085 (B.O.B. (Built on Brains))
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Zeeland, Michigan
Posts: 875
MagiChau is just really niceMagiChau is just really niceMagiChau is just really niceMagiChau is just really nice
Re: Our Team Code

Our team used a TortoiseHG GUI with Mercurial.

I would recommend try creating a separate class for initiating all your objects like motors Digital I/O etc. Just so it is in one easy class to look at. Nice work on the camera though. All we managed so far was try to detect circles and set the camera onto grey scale.
Reply With Quote
  #4   Spotlight this post!  
Unread 20-02-2011, 14:56
Ruckus2109 Ruckus2109 is offline
Registered User
FRC #2895
 
Join Date: Feb 2011
Location: NYC
Posts: 3
Ruckus2109 is an unknown quantity at this point
Re: Our Team Code

It may be my computer but I couldnt see the code :'(
Reply With Quote
  #5   Spotlight this post!  
Unread 20-02-2011, 21:20
Patrickwhite's Avatar
Patrickwhite Patrickwhite is offline
May the North be with you
FRC #0610 (The Coyotes)
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2008
Location: Toronto
Posts: 88
Patrickwhite is a glorious beacon of lightPatrickwhite is a glorious beacon of lightPatrickwhite is a glorious beacon of lightPatrickwhite is a glorious beacon of lightPatrickwhite is a glorious beacon of lightPatrickwhite is a glorious beacon of light
Re: Our Team Code

Interesting! I haven't taken too deep a look yet, but one thing you may want to look into doing is creating a class (or classes) for constants that you may need to change often. For example, in our code, instead of
Code:
Victor armJoint = new Victor(4);
we would use
Code:
Victor armJoint = new Victor(ElectricalMap.kVicArmJoint);
It's longer but makes the code more consistent, and easier to maintain.
__________________
while(!going.isTough());
tough.exit();

What will we do tonight, Warfa?
The same thing we do every night, Patrick. Sit and wait for Electrical.

Last edited by Patrickwhite : 20-02-2011 at 21:26. Reason: grammar-sniped
Reply With Quote
  #6   Spotlight this post!  
Unread 21-02-2011, 03:27
sakekasi sakekasi is offline
Registered User
AKA: Saketh Kasibatla
FRC #1160 (Firebird Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2008
Location: San Marino, CA
Posts: 6
sakekasi is an unknown quantity at this point
Send a message via AIM to sakekasi
Re: Our Team Code

nice! our team also uses google code.
our project is located here:
http://code.google.com/p/roboproject2011/

we just use the svn repos on google code with netbeans.
__________________


Reply With Quote
  #7   Spotlight this post!  
Unread 27-02-2011, 11:33
Anupam Goli's Avatar
Anupam Goli Anupam Goli is offline
PCH Q&A co-founder/Scouting Mentor
AKA: noops
FRC #1648 (G3 Robotics)
Team Role: Mentor
 
Join Date: Dec 2010
Rookie Year: 2008
Location: Atlanta, Georgia
Posts: 1,242
Anupam Goli has a reputation beyond reputeAnupam Goli has a reputation beyond reputeAnupam Goli has a reputation beyond reputeAnupam Goli has a reputation beyond reputeAnupam Goli has a reputation beyond reputeAnupam Goli has a reputation beyond reputeAnupam Goli has a reputation beyond reputeAnupam Goli has a reputation beyond reputeAnupam Goli has a reputation beyond reputeAnupam Goli has a reputation beyond reputeAnupam Goli has a reputation beyond repute
Re: Our Team Code

Yay for google code!

http://code.google.com/p/2011deployable-1002/

Anyway, I think that maybe you should make a class that is sort of an IO processor, something like our team did. It makes things less messy and all of your IO stuff is in one place
And i like the absraction, very useful. I am dissapoint though, RobotDrive? Really? you should definitely make your own drive class, it's quite useful, especially when you couple that with an interface that houses a method to move when given some parameters.
__________________
Team 1002: 2008-2012
Team 1648: 2012-2016
Georgia Tech Class of 2016
Reply With Quote
Reply


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


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

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