// RobotBuilder Version: 2.0
//
// 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;

// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=IMPORTS
import edu.wpi.first.wpilibj.CANTalon;
import edu.wpi.first.wpilibj.RobotDrive;

// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=IMPORTS
import edu.wpi.first.wpilibj.livewindow.LiveWindow;

/**
 * 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
    public static CANTalon frontLeftMotor;
    public static CANTalon rearLeftMotor;
    public static CANTalon frontRightMotor;
    public static CANTalon rearRightMotor;
    public static RobotDrive driveTrain;

    // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DECLARATIONS

    public static void init() {
        // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS
        frontLeftMotor = new CANTalon(0);
        LiveWindow.addActuator("Drivetrain", "frontLeft", frontLeftMotor);
        
        rearLeftMotor = new CANTalon(1);
        LiveWindow.addActuator("Drivetrain", "rearLeft", rearLeftMotor);
        
        frontRightMotor = new CANTalon(2);
        LiveWindow.addActuator("Drivetrain", "frontRight", frontRightMotor);
        
        rearRightMotor = new CANTalon(3);
        LiveWindow.addActuator("Drivetrain", "rearRight", rearRightMotor);
        
        driveTrain = new RobotDrive(frontLeftMotor, rearLeftMotor,
              frontRightMotor, rearRightMotor);
        
        driveTrain.setSafetyEnabled(true);
        driveTrain.setExpiration(0.1);
        driveTrain.setSensitivity(0.5);
        driveTrain.setMaxOutput(1.0);

        driveTrain.setInvertedMotor(RobotDrive.MotorType.kFrontRight, true);
        driveTrain.setInvertedMotor(RobotDrive.MotorType.kRearRight, true);

        // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS
    }
}

@@ -1556,17 +1556,17 @@
 ANTalon(
-0
+1
 );%0A     
@@ -1673,33 +1673,33 @@
  = new CANTalon(
-1
+2
 );%0A        LiveW
@@ -1798,33 +1798,33 @@
  = new CANTalon(
-2
+3
 );%0A        LiveW
@@ -1926,33 +1926,33 @@
  = new CANTalon(
-3
+4
 );%0A        LiveW
@@ -2380,24 +2380,24 @@
 ght, true);%0A
-
         driv
@@ -2459,16 +2459,167 @@
 , true);
+%0A        driveTrain.setInvertedMotor(RobotDrive.MotorType.kFrontLeft, true);%0A        driveTrain.setInvertedMotor(RobotDrive.MotorType.kRearLeft, true);
 %0A%0A      

Fix motor inversions