|
Re: Team 996 in need of help
To switch from arcade to tank drive in LabView,
1) Define your second joystick in the Begin vi.
2) Open the teleop vi in Robot Main.
3) Add code to read the second joystick using the Joystick 1 code as an example
4) Replace the Arcade Drive vi with the Tank Drive vi. The Arcade Drive and Tank Drive vi's are in the WPI Robotics Library->Robot path of the Functions Palate.
5) Connect the X or Y wire from Joystick 1 to the Tank Drive vi and the X or Y wire from Joystick 2 to the Tank Drive vi.
I hope that helps.
|