It is also unlikely that you mean what is stated regarding leftstick and rightstick. What is in the code says that joystick controller #1 (the first xbox controller) will be the left-stick while the right part of the tank drive will be controlled by joystick #2 (the 2nd xbox controller). What you more likely want to do is use particular parts of a single joystick - a particular axis of joystick #1 for the left and a particular part/axis of joystick #1 for the right.
One of my students (holly4win) posted in a separate thread today about a "joystick investigator" program our team wrote which you might find useful to getting this information - see the thread at
http://www.chiefdelphi.com/forums/sh...d.php?t=103156
Thanks,
bob