|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
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 |
|
#2
|
|||
|
|||
|
Re: Our Team Code
Oh, are we using google code right? We currently have 41 revisions on there right now...
|
|
#3
|
||||
|
||||
|
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. |
|
#4
|
|||
|
|||
|
Re: Our Team Code
It may be my computer but I couldnt see the code :'(
|
|
#5
|
||||
|
||||
|
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); Code:
Victor armJoint = new Victor(ElectricalMap.kVicArmJoint); Last edited by Patrickwhite : 20-02-2011 at 21:26. Reason: grammar-sniped |
|
#6
|
|||
|
|||
|
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. |
|
#7
|
||||
|
||||
|
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. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|