Thread created automatically to discuss a document in CD-Media.
Killer Bees BuzzXVII 2012 Code
by: apalrd
Complete code from The Killer Bees 2012 robot, BuzzXVII, written in LabVIEW. Also includes commonly used function library and vision testing code
Complete code from The Killer Bees 2012 robot, BuzzXVII, written in LabVIEW. Also includes commonly used function library and vision testing code
Buzz17_CD_Release.zip:
This file contains the complete code of Buzz17 (2012). The project files are buzz17.lvproj and dashboard/buzz17_dashboard.lvproj. See Robot Main.vi for the subsystem organization, and the VI’s under it for each subsystem. I added some comments to the top of VI’s to make my thought process more clear.
BuzzLib.zip:
This file contains the common functions used in the code. Such functions include:
-Simple PID controller
-Simple linear PID gain scheduler
-Simple binary PID gain scheduler
-Simple analog scaling - Scales an input linearly based on two points - Initially written to scale analog inputs, it has also been used to: scale error to linearly cap the integral term (gun speed control), linearly scale the hood based on turret offset angle (fender shot), linearly scale speed between old and new ball settings (various instances in the gun controller), and other things.
-Simple analog input diagnostics - Filters an analog input for various common input faults
-Analog input diagnostic persuader - Filters an output based on the input faults (persuades the output to adhere to the desired action for a fault)
-Various limiting VI’s (limit to pct, limit to (0,1), deadband around joysticks, other similar functions)
-Linear ramp
-Other things
Everything in BuzzLib is also in the Buzz17 CD release, most of the files are in the common folder.
2012vision.zip:
2012 vision software including the test program. I used the test program (test_vision.vi) to run vision samples and test the vision algorithm. It reads a hardcoded folder path, iterates through all JPEG files in the folder, stores the outputs to an overlay, and outputs the resulting image to a file in a new folder. This program was vital to the development of multiple target analysis. See the VI’s in multiple target analysis for more details on the algorithm. It isn’t perfect, but we’ve found it’s quite good.
As with previous releases, feel free to use any of this code in your own projects. Please credit Team 33, The Killer Bees, if you use any major sections (e.g. the vision or autonomous systems).
BuzzLib.zip (96.3 KB)
2012vision.zip (405 KB)
Buzz17_CD_Release.zip (7.8 MB)