Thread: Our Team Code
View Single Post
  #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