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

Oh, are we using google code right? We currently have 41 revisions on there right now…

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.

It may be my computer but I couldnt see the 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

Victor armJoint = new Victor(4);

we would use

Victor armJoint = new Victor(ElectricalMap.kVicArmJoint);

It’s longer but makes the code more consistent, and easier to maintain.

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.

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 :stuck_out_tongue:
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.