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