Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Our Team Code (http://www.chiefdelphi.com/forums/showthread.php?t=90852)

classic_algebra 03-02-2011 17:53

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

davidthefat 03-02-2011 18:17

Re: Our Team Code
 
Oh, are we using google code right? We currently have 41 revisions on there right now...

MagiChau 04-02-2011 19:47

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.

Ruckus2109 20-02-2011 14:56

Re: Our Team Code
 
It may be my computer but I couldnt see the code :'(

Patrickwhite 20-02-2011 21:20

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.

sakekasi 21-02-2011 03:27

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.

Anupam Goli 27-02-2011 11:33

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


All times are GMT -5. The time now is 22:19.

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