View Single Post
  #7   Spotlight this post!  
Unread 28-02-2011, 19:50
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: Organized, multiple source code vs everything in one code.

My source code files aren't exactly organized the best way. I have a file for the addresses for devices that is called by the main class when constructing the objects. There is one for settings so I could do things like change sensitivity on the acclerometer or change the timeout period for the encoders in one list just for easier way to access than scrolling through the main class.

Regarding actually make stuff do things, as of now I have a class containing code for autonomous, a in-progress one for initiation(teleop, auto, and robot), one for the arm, one for driving, and another for the claw. I probably should have auto/teleop files that calls on code for each component that is then is called to the main file. Didn't really think myself through this season.