|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Please Help, Don't Know How to Implement Tank Drive in LabView
Please help, me and my team have just started programming in labview and we don't know much about it, anything really.We're all very adjusted to C/C++. We are trying to implement tank drive in the default code included with labview, the basic and advanced templates for the frc robot project template. We realize that there is a tank drive vi included in the WPI libraries but our real problem is getting a second joystick to be included in the code. Any help would be incredibly helpful. It doesn't matter whether the help is with the basic or advanced template, anything that works would be helpful.
|
|
#2
|
||||
|
||||
|
Re: Please Help, Don't Know How to Implement Tank Drive in LabView
Are you using the Basic Framework? If so, simply select the one Open Joystick vi and hold the Ctrl key while dragging the copy to a space just below. Create a constant and choose usb port 2. Click on the lower of the two joystick clusters going into the Joystick-Get Axis vi and delete it. Now wire the Joystick cluster (the think brown line at the upper left) from the new Open Joystick vi to the same Get Axis vi. Select axis 2 for each one. Wire them into the left and right values of the Tank Drive vi and there you go!
|
|
#3
|
||||
|
||||
|
Re: Please Help, Don't Know How to Implement Tank Drive in LabView
Thanks, the help is much appreciated. I'm still curious as to how that would be done in the advanced framework as well. If anybody has any knowledge on that it would be great, just for curiosities sake.
|
|
#4
|
||||
|
||||
|
Re: Please Help, Don't Know How to Implement Tank Drive in LabView
Just use the open vi's for the joysticks and motors in Begin.vi, making sure their Device Reference type def is copied into RobotData type def. Then use them in Teleop.vi as the provided example shows.
|
|
#5
|
|||
|
|||
|
Re: Please Help, Don't Know How to Implement Tank Drive in LabView
our team had done the advanced framework, and we actually just copied and pasted a second joystick in. we also did that for all the motors and axis.
Ctrl+C Copy Ctrl+V Paste |
|
#6
|
||||
|
||||
|
Re: Please Help, Don't Know How to Implement Tank Drive in LabView
I haven't actually programmed anything yet, but these video's are pretty helpful. You could probably skip the first one.
http://www.lvmastery.com/files/FIRST..._Part1(2).html --------------------------------------------------------------------- http://www.lvmastery.com/files/First...c12_Part2.html --------------------------------------------------------------------- http://www.lvmastery.com/files/First...12_Part3b.html |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| HELP!!! Don't know where to start! | comwiz7 | Programming | 3 | 29-01-2006 19:22 |
| Does anyone know how to animate with inventor studio? Please Help ME | BigMcLargeHuge | Inventor | 8 | 22-12-2005 12:37 |
| What is wrong with this code???? It won't Compile and I don't know why? Please Help | CrashZero | Programming | 23 | 26-03-2004 09:44 |