|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||||
|
|||||
|
Team 2337 - 2012 Rebound Rumble Code
For the first time, Team 2337 is open-sourcing our competition code for our Rebound Rumble robot, the Admiral. Any comments and questions are welcome.
Code source on GitHub: https://github.com/Team2337/2012ReboundRumble For more information on robot performance: http://www.team2337.com/robots.html The robot CAD can be found on FRC-Designs: http://www.frc-designs.com/html/CAD_2012.html More pictures of the Admiral can be found here: https://plus.google.com/115608715549316219693/photos; GitHub handles LabVIEW files as strictly binary files, so to actually view the code, one must download this whole repo and view it on a local installation of LabVIEW 2012. A couple of code features:
|
|
#2
|
|||||
|
|||||
|
Re: Team 2337 - 2012 Rebound Rumble Code
I looked through the Auton code. Could you possibly provide an example of what a script looks like?
|
|
#3
|
||||
|
||||
|
Re: Team 2337 - 2012 Rebound Rumble Code
Can you explain how the cheesy drive works. I have only tried tank and arcade in the past.
|
|
#4
|
|||||
|
|||||
|
Re: Team 2337 - 2012 Rebound Rumble Code
Quote:
http://zcry.me/RrCj Last edited by Zach O : 26-05-2012 at 21:46. |
|
#5
|
|||||
|
|||||
|
Re: Team 2337 - 2012 Rebound Rumble Code
I can't explain the LabVIEW part of it, but I can tell you how it works controls-wise. One of the sticks controls the forward and backwards drive, and the other stick will control turning. So your two axes are separated. I believe we have it in our code where if you're not going as fast on the forward-reverse stick, you'll get sharper turns.
|
|
#6
|
||||
|
||||
|
Re: Team 2337 - 2012 Rebound Rumble Code
I'll just do a quick copypasta from Twitter for this:
Quote:
|
|
#7
|
|||||
|
|||||
|
Re: Team 2337 - 2012 Rebound Rumble Code
poops.vi "poops" out all the digital IO states onto the driver console. It updates live with the robot, so you can see the IOs change as you go. We were having a lot of issues with our sensors at the beginning of the season, so we made this VI for debugging purposes.
It looks like I'm going to have to review filenames before we publish them next time ![]() |
|
#8
|
|||||
|
|||||
|
Re: Team 2337 - 2012 Rebound Rumble Code
Quote:
|
|
#9
|
||||
|
||||
|
Re: Team 2337 - 2012 Rebound Rumble Code
Quote:
I mean, in our code, the logo for the vi that runs ball collection looks like a flux capacitor for no apparent reason. |
|
#10
|
|||||
|
|||||
|
Re: Team 2337 - 2012 Rebound Rumble Code
Hey guys, sorry - I had family over today, and frankly I wasn't expecting as much interest as was displayed.
I was intending to post example scripts, but I didn't have access to any - which I was planning to remedy next week. However, I took the scripts from what Zach posted and pushed the ones we actually used this year to GitHub, under the "Autonomous Scripts" folder, as well as a quick Readme on them. For a quick overview, the way the a function works TYPICALLY follows the formula: commandFunction(relative, start type, start param, end type, end param) So, for instance, the function: intake(relative, label-end, shootOne, t, .5, intakeOne) Will follow the end of a label('shootOne'), lasts for .5 seconds, and is assigned a label ('intakeOne'). Hopefully this helps. |
|
#11
|
|||||
|
|||||
|
Re: Team 2337 - 2012 Rebound Rumble Code
Reading over some of the scripting system, there's quite an elegance to the entire system. I do like it a lot.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|