|
|
|
![]() |
|
|||||||
|
||||||||
| View Poll Results: Would your team use our SwapDrive? | |||
| Yes |
|
4 | 23.53% |
| No |
|
10 | 58.82% |
| Maybe |
|
3 | 17.65% |
| Voters: 17. You may not vote on this poll | |||
|
|
Thread Tools |
Rating:
|
Display Modes |
|
#1
|
|||
|
|||
|
(Free Code!) FRC 3525's "Swap Drive"
Hi everyone!! Just making a post to give you guys the ability to use a copy of my team's "Swap Drive" code. I've attached the VIs (which you can just copy into your robot project whenever) and am going to be providing the documentation in this post, as well as in a file that will come with the download.
So, here goes. First Off: What is "Swap Drive"? Swap drive is a small bit of code that provides you with the ability to swap between tank drive and arcade drive at any point in the match. My team has found this very helpful as it provides ease of driving straight when not at top speed from arcade drive, and having the maneuverability of tank drive, at a moment's notice. Documentation Using SwapDrive.vi is surprisingly simple. Just as there is with any vi, you place it into your code, plug in all of the inputs, and then let it run. The inputs are as follows:
There are also the following outputs, to be used as you see fit.
Code is explained inside of the VI. I can't guarantee anything will work if changes are made. All inputs are required, outputs are yours to do with as you please. If you have any further questions, feel free to post them here, PM me on the forums, or email me at [my username]@gmail.com Update [3/31/14]: I tested the code on the robot simulator that is provided with LabVIEW and modified the SwapDrive.vi to work properly. The currently attached file is the latest version. If you have a version downloaded before 3/31 it will not function correctly. Last edited by dmaciel10123 : 31-03-2014 at 16:01. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|