// RobotBuilder Version: 1.5
//
// This file was generated by RobotBuilder. It contains sections of
// code that are automatically generated and assigned by robotbuilder.
// These sections will be updated in the future when you export to
// Java from RobotBuilder. Do not put any code or make any change in
// the blocks indicating autogenerated code or it will be lost on an
// update. Deleting the comments indicating the section will prevent
// it from being updated in the future.


package org.usfirst.frc2832.Robot_2016;
    

import edu.wpi.first.wpilibj.livewindow.LiveWindow;
import java.util.Vector;

/**
 * The RobotMap is a mapping from the ports sensors and actuators are wired into
 * to a variable name. This provides flexibility changing wiring, makes checking
 * the wiring easier and significantly reduces the number of magic numbers
 * floating around.
 */
public class RobotMap {
    // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DECLARATIONS
    // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DECLARATIONS

    public static void init() {
        // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS
        // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS
    }
}

@@ -22,11 +22,11 @@
 on: 
-1.5
+2.0
 %0A//%0A
@@ -524,13 +524,207 @@
 16;%0A
-    %0A
+%0A// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=IMPORTS%0Aimport edu.wpi.first.wpilibj.CANTalon;%0Aimport edu.wpi.first.wpilibj.RobotDrive;%0A%0A// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=IMPORTS
 %0Aimp
@@ -775,33 +775,8 @@
 dow;
-%0Aimport java.util.Vector;
 %0A%0A/*
@@ -1139,176 +1139,1333 @@
     
-// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DECLARATIONS%0A%0A    public static void init() %7B%0A        // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS
+public static CANTalon frontLeftMotor;%0A    public static CANTalon rearLeftMotor;%0A    public static CANTalon frontRightMotor;%0A    public static CANTalon rearRightMotor;%0A    public static RobotDrive driveTrain;%0A%0A    // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DECLARATIONS%0A%0A    public static void init() %7B%0A        // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS%0A        frontLeftMotor = new CANTalon(0);%0A        LiveWindow.addActuator(%22Drivetrain%22, %22frontLeft%22, frontLeftMotor);%0A        %0A        rearLeftMotor = new CANTalon(1);%0A        LiveWindow.addActuator(%22Drivetrain%22, %22rearLeft%22, rearLeftMotor);%0A        %0A        frontRightMotor = new CANTalon(2);%0A        LiveWindow.addActuator(%22Drivetrain%22, %22frontRight%22, frontRightMotor);%0A        %0A        rearRightMotor = new CANTalon(3);%0A        LiveWindow.addActuator(%22Drivetrain%22, %22rearRight%22, rearRightMotor);%0A        %0A        driveTrain = new RobotDrive(frontLeftMotor, rearLeftMotor,%0A              frontRightMotor, rearRightMotor);%0A        %0A        driveTrain.setSafetyEnabled(true);%0A        driveTrain.setExpiration(0.1);%0A        driveTrain.setSensitivity(0.5);%0A        driveTrain.setMaxOutput(1.0);%0A%0A        driveTrain.setInvertedMotor(RobotDrive.MotorType.kFrontRight, true);%0A        driveTrain.setInvertedMotor(RobotDrive.MotorType.kRearRight, true);%0A
 %0A   

Add drivetrain definitions