FIRST Robotics Competition Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

cannot get tank drive to work

well

we finally got the wireless to work and it seems pretty good.  I followed the instructions on page 43 of section 2 of controls which concerns confirmation of "tank drive."  It stays in arcade drive when I turn the "Z" wheel to [-] .  actually, I am assuming that I am turning the "Z" wheel to [-] as there is no information anywhere exactly what the "Z" wheel is.  I assume that it is the wheel that is directly behind the actual joystick lever as there is no other wheel that does anything like that.  Does anyone know what to do?

Thanks

0 Kudos
Message 1 of 2
(3,495 Views)

RichardHarman,

The Basic Tank Drive setup is that you'd have one joystick control the Left Motor and another joystick control the Right Motor. I set this up on a robot and didn't mess with the "z" wheel, but I do belive you are correct in assuming that the "z" wheel is that slider below the joystick.

You can set tank drive up In the Basic Robot Example by changing a few things.

1.) Initilaize a Second Joystick in the Begin VI

2.) Replace the Arcade drive VI with the Tank Drive VI in the Teleop VI.

3.) Feed the Y axis from Joystick 1 into the Left motor

4.) Feed the Y axis from Joystick 2 into the Right motor.

This should be the biggest changes you'll need to make. In the Begin VI you may have to invert a motor direction or two depending upon how you have them setup on your robot.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Ben Sisney
FlexRIO V&V Engineer
National Instruments
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
0 Kudos
Message 2 of 2
(2,572 Views)