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.





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.

alright thanks, got it working

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.