package org.usfirst.frc.team3130.robot;


import edu.wpi.first.wpilibj.SampleRobot;
import edu.wpi.first.wpilibj.RobotDrive;
import edu.wpi.first.wpilibj.CANTalon;
import edu.wpi.first.wpilibj.Joystick;
import edu.wpi.first.wpilibj.Timer;

/**
 * This is a demo program showing the use of the RobotDrive class, specifically it 
 * contains the code necessary to operate a robot with tank drive.
 *
 * The VM is configured to automatically run this class, and to call the
 * functions corresponding to each mode, as described in the SampleRobot
 * documentation. If you change the name of this class or the package after
 * creating this project, you must also update the manifest file in the resource
 * directory.
 *
 * WARNING: While it may look like a good choice to use for your code if you're inexperienced,
 * don't. Unless you know what you are doing, complex code will be much more difficult under
 * this system. Use IterativeRobot or Command-Based instead if you're new.
 */
public class Robot extends SampleRobot {
    RobotDrive myRobot;  // class that handles basic drive operations
    Joystick leftStick;  // set to ID 1 in DriverStation
    Joystick rightStick; // set to ID 2 in DriverStation
    CANTalon talonL, talonR;
    public Robot() {
    	talonL = new CANTalon(3);
    	talonR = new CANTalon(5);
        myRobot = new RobotDrive(talonL,talonR);
        myRobot.setExpiration(0.1);
        leftStick = new Joystick(0);
        rightStick = new Joystick(1);
    }

    
    /**
     * Runs the motors with tank steering.
     */
    public void operatorControl() {
        myRobot.setSafetyEnabled(true);
        while (isOperatorControl() && isEnabled()) {
        	myRobot.tankDrive(leftStick, rightStick);
            Timer.delay(0.005);		// wait for a motor update time
        }
    }

}

@@ -1226,16 +1226,50 @@
 lonL
-, talonR
+Front, talonLRear, talonRFront, talonRRear
 ;%0A  
@@ -1298,16 +1298,21 @@
  %09talonL
+Front
  = new C
@@ -1337,26 +1337,101 @@
 alon
-R = new CANTalon(5
+LRear = new CANTalon(4);%0A    %09talonRFront = new CANTalon(5);%0A    %09talonRRear = new CANTalon(6
 );%0A 
@@ -1472,15 +1472,47 @@
 lonL
+Front
 ,talon
-R
+LRear,talonRFront,talonRRear
 );%0A 

Update to 4 motor drive