Just a heads up..
When you put this before your init: P.S you can declare 2 things in one line just use commas,
Code:
Joystick left;
Joystick right;
Joystick left, right;
You don't have to put it again you put:
Code:
Joystick left = new Joystick(1);
Joystick right = new Joystick(2);
You already declared left as a joystick you dont have to do it again, just saying.
You dident declare an axis for driving
Code:
robot.tankDrive(left.getY(),right.getY());