|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Incorporating Tank Drive
Our team has edited Teleop.vi to use tank drive, opening the second joystick, reading Y axes and closing the joysticks. Two of the 4 jaguars recieved signal but didn't change upon moving the joysticks.
screenshot of the code attached. Sorry I didn't clean it up. I tried to but it made it look completely illegible. |
|
#2
|
|||||
|
|||||
|
Re: Incorporating Tank Drive
Did you open Begin.VI and change the Open 2 Motor VI to an Open 4 Motor VI?
Also, you will want to open the second joystick in Begin.VI instead of inside the case statement in Teleop. Look at the code that is already there for an example of how to open the Joystick then store it as a refnum. Then in Teleop.VI you would need to put a Refnum Registry Get.VI from the Joystick section on the outside of the case statement (looks very similar to the icon already there for Drive.) Someone else may be able to explain this in a more elegant manner if you're still having trouble. |
|
#3
|
|||
|
|||
|
Re: Incorporating Tank Drive
alright thanks, got it working
|
|
#4
|
|||||
|
|||||
|
Re: Incorporating Tank Drive
It's a good thing the Joystick Close vi doesn't really do much. You definitely shouldn't have it in the Teleop vi. It, along with all the other Close vis should go in the Finish vi.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Tank Drive vs. Omni Directional Drive | jamie_1930 | General Forum | 9 | 24-01-2010 22:50 |
| Tank Drive Code? | huskyrobotics | NI LabVIEW | 9 | 16-02-2009 22:04 |
| Tank Drive | Sauce | Programming | 1 | 05-01-2009 18:50 |
| Tank Drive | Idaman323 | Programming | 14 | 15-02-2005 09:01 |
| tank drive | Stormhammer | Programming | 11 | 29-01-2004 23:08 |