|
Re: Which programming language does your team use?
We are using LABView. But we are also using library's and sub-directories to maintain organization. We currently have a library for each 'component' of the robot stored in its own sub-directory.
Chassis
Shooter
Climbing
Hanging
Intake
User Interface
File IO
Test
Each library is organized in the same manner:
<Library>Open.vi - called from Begin.vi
<Library>Close.vi - called from Finish.vi
<Library>Disable.vi - called from Disable.vi
<Library>ControlLoop.vi - called from Periodic Tasks.vi
Then there are <Library>"specific".vi's for library specific actions.
In addition, we are using the "Conditional Disable Symbol" to allow us to selectively include/exclude portions of the code depending on what we are looking to do. For example: our practice bot does not have any physical Intake or Hanging components, so they are disabled. No code related to the Intake or Hanging will execute and no errors are generated because the physical devices are not present.
And the code can be as clean as you want it to be. See attached screen shot.
__________________
2014 Chairman's Award--Michigan State Championship
2014 Chairman's Award--Waterford District
2014 Winner--Great Lakes Bay District
2013 Chairman's Award--Kettering District
2012 Championship Division Finalists--Thanks 330 and 639
|