Start with the given Simple Robot Template and add the import "edu.wpi.first.wpilibj.*"
Then add
Code:
RobotDrive drive = new RobotDrive(1,2,3,4);
Joystick leftStick = new Joystick(1);
Joystick rightStick = new Joystick(2);
under "public class RobotTemplate extends SimpleRobot"
Then add
Code:
drive.tankDrive(leftStick,rightStick);
under "public void operatorControl()".
This will give you a tank drive system for a four motor robot with front left motor in port 1, back left in port 2, front right in port 3, and rear right in port 4 using the left joystick in port 1 and the right joystick in port 2. Best of luck
