// 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.frc3482.robot;
    
import edu.wpi.first.wpilibj.*;

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
    public static DoubleSolenoid rampDoubleSolenoid1;
    public static SpeedController armsArms;
    public static DigitalInput armsLimitSwitch1;
    public static DigitalInput armsLimitSwitch2;
    public static DigitalInput armsLimitSwitch3;
    public static DigitalInput armsLimitSwitch4;
    public static DigitalInput armsLimitSwitch5;
    public static DoubleSolenoid armsDoubleSolenoid1;
    public static SpeedController chassisBackLeft;
    public static SpeedController chassisBackRight;
    public static SpeedController chassisFrontRight;
    public static SpeedController chassisFrontLeft;
    public static RobotDrive chassisRobotDrive41;
    public static Gyro chassisGyro1;
    public static Compressor chassisCompressor1;
    // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DECLARATIONS

    public static void init() {
        // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS
        rampDoubleSolenoid1 = new DoubleSolenoid(0, 0, 1);      
        LiveWindow.addActuator("Ramp", "Double Solenoid 1", rampDoubleSolenoid1);
        
        armsArms = new CANTalon(4);
        //LiveWindow.addActuator("Arms", "Arms", (TalonSRX) armsArms);
        
        armsLimitSwitch1 = new DigitalInput(0);
        LiveWindow.addSensor("Arms", "Limit Switch 1", armsLimitSwitch1);
        
        armsLimitSwitch2 = new DigitalInput(1);
        LiveWindow.addSensor("Arms", "Limit Switch 2", armsLimitSwitch2);
        
        armsLimitSwitch3 = new DigitalInput(2);
        LiveWindow.addSensor("Arms", "Limit Switch 3", armsLimitSwitch3);
        
        armsLimitSwitch4 = new DigitalInput(3);
        LiveWindow.addSensor("Arms", "Limit Switch 4", armsLimitSwitch4);
        
        armsLimitSwitch5 = new DigitalInput(4);
        LiveWindow.addSensor("Arms", "Limit Switch 5", armsLimitSwitch5);
        
        armsDoubleSolenoid1 = new DoubleSolenoid(0, 2, 3);      
        LiveWindow.addActuator("Arms", "Double Solenoid 1", armsDoubleSolenoid1);
        
        chassisBackLeft = new CANTalon(1);
        //LiveWindow.addActuator("Chassis", "BackLeft", (TalonSRX) chassisBackLeft);
        
        chassisBackRight = new CANTalon(3);
        //LiveWindow.addActuator("Chassis", "BackRight", (TalonSRX) chassisBackRight);
        
        chassisFrontRight = new CANTalon(2);
        //LiveWindow.addActuator("Chassis", "FrontRight", (TalonSRX) chassisFrontRight);
        
        chassisFrontLeft = new CANTalon(0);
        //LiveWindow.addActuator("Chassis", "FrontLeft", (TalonSRX) chassisFrontLeft);
        
        chassisRobotDrive41 = new RobotDrive(chassisFrontLeft, chassisBackLeft,
              chassisFrontRight, chassisBackRight);
        
        chassisRobotDrive41.setSafetyEnabled(true);
        chassisRobotDrive41.setExpiration(0.1);
        chassisRobotDrive41.setSensitivity(0.5);
        chassisRobotDrive41.setMaxOutput(1.0);

        chassisGyro1 = new Gyro(0);
        LiveWindow.addSensor("Chassis", "Gyro 1", chassisGyro1);
        chassisGyro1.setSensitivity(0.007);
        chassisCompressor1 = new Compressor(0);
        
        
        // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS
    }
}

@@ -2078,27 +2078,24 @@
 sArms = new 
-CAN
 Talon(4);%0A  
@@ -2092,34 +2092,32 @@
 lon(4);%0A        
-//
 LiveWindow.addAc
@@ -2145,19 +2145,16 @@
 , (Talon
-SRX
 ) armsAr
@@ -3012,18 +3012,15 @@
 new 
-CAN
 Talon(
-1
+3
 );%0A 
@@ -3018,34 +3018,32 @@
 lon(3);%0A        
-//
 LiveWindow.addAc
@@ -3070,35 +3070,32 @@
 ackLeft%22, (Talon
-SRX
 ) chassisBackLef
@@ -3142,18 +3142,15 @@
 new 
-CAN
 Talon(
-3
+1
 );%0A 
@@ -3148,34 +3148,32 @@
 lon(1);%0A        
-//
 LiveWindow.addAc
@@ -3201,35 +3201,32 @@
 ckRight%22, (Talon
-SRX
 ) chassisBackRig
@@ -3275,18 +3275,15 @@
 new 
-CAN
 Talon(
-2
+0
 );%0A 
@@ -3281,34 +3281,32 @@
 lon(0);%0A        
-//
 LiveWindow.addAc
@@ -3335,35 +3335,32 @@
 ntRight%22, (Talon
-SRX
 ) chassisFrontRi
@@ -3409,18 +3409,15 @@
 new 
-CAN
 Talon(
-0
+2
 );%0A 
@@ -3423,18 +3423,16 @@
         
-//
 LiveWind
@@ -3480,11 +3480,8 @@
 alon
-SRX
 ) ch

Revert "Switched to CAN Talons"