src/org/usfirst/frc1039/TShirtCannonJava/RobotMap.java
public static void init() {
        // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS
        driveRightDrive = new CANTalon(kRightMotorA);
        driveRightDriveB = new CANTalon(kRightMotorB);
        LiveWindow.addActuator("Drive", "RightDrive", driveRightDrive);
                
        driveLeftDrive = new CANTalon(kLeftMotorA);
        driveLeftDriveB = new CANTalon(kLeftMotorB);
        LiveWindow.addActuator("Drive", "LeftDrive", driveLeftDrive);
        
        driveRightDrive.set(0);
        driveRightDriveB.changeControlMode(CANTalon.TalonControlMode.Follower);
        driveRightDriveB.set(kRightMotorA);
        
        driveLeftDrive.set(0);
        driveLeftDriveB.changeControlMode(CANTalon.TalonControlMode.Follower);
        driveLeftDriveB.set(kLeftMotorA);
        
        driveRobotDriveMotors = new RobotDrive(driveLeftDrive, driveRightDrive);
        
        driveRobotDriveMotors.setSafetyEnabled(true);
        driveRobotDriveMotors.setExpiration(0.1);
        driveRobotDriveMotors.setSensitivity(0.5);
        driveRobotDriveMotors.setMaxOutput(1.0);
        
        driveGearShift = new Solenoid(4);
        LiveWindow.addActuator("Drive", "Shifter", driveGearShift);
        
        cannonBarrelExtender = new Solenoid(0);
        LiveWindow.addActuator("Cannon", "BarrelExtender", cannonBarrelExtender);
        
        cannonShootSolenoid = new Solenoid(1);
        LiveWindow.addActuator("Cannon", "ShootSolenoid", cannonShootSolenoid);
        
        cannonChargeSolenoid = new Relay(0);
        LiveWindow.addActuator("Cannon", "ChargeSolenoid", cannonChargeSolenoid);
        
        cannonLight = new Relay(1);
        LiveWindow.addActuator("Cannon", "Light", cannonLight);
        
        cannonBarrelRotator = new CANTalon(5);
        LiveWindow.addActuator("Cannon", "BarrelRotator", cannonBarrelRotator);
        
        cannonBarrelOutlimit = new DigitalInput(5);
        LiveWindow.addSensor("Cannon", "BarrelOutLimit", cannonBarrelOutlimit);
        
        cannonBarrelInLimit = new DigitalInput(6);
        LiveWindow.addSensor("Cannon", "BarrelInLimit", cannonBarrelInLimit);
        
        BarrelLocator = new DigitalInput(8);
        
        tankPressure = new AnalogInput(0);
        LiveWindow.addSensor("Cannon", "TankPressure", tankPressure);
        
    // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS
    }
// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DECLARATIONS
END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DECLARATIONS
END AUTOGENERATED CODE SOURCE = ROBOTBUILDER ID = DECLARATIONS
public static void init() {
        driveRightDrive = new CANTalon(kRightMotorA);
        driveRightDriveB = new CANTalon(kRightMotorB);
        LiveWindow.addActuator("Drive", "RightDrive", driveRightDrive);
        driveLeftDrive = new CANTalon(kLeftMotorA);
        driveLeftDriveB = new CANTalon(kLeftMotorB);
        LiveWindow.addActuator("Drive", "LeftDrive", driveLeftDrive);
        driveRightDrive.set(0);
        driveRightDriveB.changeControlMode(CANTalon.TalonControlMode.Follower);
        driveRightDriveB.set(kRightMotorA);
        driveLeftDrive.set(0);
        driveLeftDriveB.changeControlMode(CANTalon.TalonControlMode.Follower);
        driveLeftDriveB.set(kLeftMotorA);
        driveRobotDriveMotors = new RobotDrive(driveLeftDrive, driveRightDrive);
        driveRobotDriveMotors.setSafetyEnabled(true);
        driveRobotDriveMotors.setExpiration(0.1);
        driveRobotDriveMotors.setSensitivity(0.5);
        driveRobotDriveMotors.setMaxOutput(1.0);
        driveGearShift = new Solenoid(4);
        LiveWindow.addActuator("Drive", "Shifter", driveGearShift);
        cannonBarrelExtender = new Solenoid(0);
        LiveWindow.addActuator("Cannon", "BarrelExtender", cannonBarrelExtender);
        cannonShootSolenoid = new Solenoid(1);
        LiveWindow.addActuator("Cannon", "ShootSolenoid", cannonShootSolenoid);
        cannonChargeSolenoid = new Relay(0);
        LiveWindow.addActuator("Cannon", "ChargeSolenoid", cannonChargeSolenoid);
        cannonLight = new Relay(1);
        LiveWindow.addActuator("Cannon", "Light", cannonLight);
        cannonBarrelRotator = new CANTalon(5);
        LiveWindow.addActuator("Cannon", "BarrelRotator", cannonBarrelRotator);
        cannonBarrelOutlimit = new DigitalInput(5);
        LiveWindow.addSensor("Cannon", "BarrelOutLimit", cannonBarrelOutlimit);
        cannonBarrelInLimit = new DigitalInput(6);
        LiveWindow.addSensor("Cannon", "BarrelInLimit", cannonBarrelInLimit);
        BarrelLocator = new DigitalInput(8);
        tankPressure = new AnalogInput(0);
        LiveWindow.addSensor("Cannon", "TankPressure", tankPressure);
    }
public static void init ( ) { driveRightDrive = new CANTalon ( kRightMotorA ) ; driveRightDriveB = new CANTalon ( kRightMotorB ) ; LiveWindow . addActuator ( "Drive" , "RightDrive" , driveRightDrive ) ; driveLeftDrive = new CANTalon ( kLeftMotorA ) ; driveLeftDriveB = new CANTalon ( kLeftMotorB ) ; LiveWindow . addActuator ( "Drive" , "LeftDrive" , driveLeftDrive ) ; driveRightDrive . set ( 0 ) ; driveRightDriveB . changeControlMode ( CANTalon . TalonControlMode . Follower ) ; driveRightDriveB . set ( kRightMotorA ) ; driveLeftDrive . set ( 0 ) ; driveLeftDriveB . changeControlMode ( CANTalon . TalonControlMode . Follower ) ; driveLeftDriveB . set ( kLeftMotorA ) ; driveRobotDriveMotors = new RobotDrive ( driveLeftDrive , driveRightDrive ) ; driveRobotDriveMotors . setSafetyEnabled ( true ) ; driveRobotDriveMotors . setExpiration ( 0.1 ) ; driveRobotDriveMotors . setSensitivity ( 0.5 ) ; driveRobotDriveMotors . setMaxOutput ( 1.0 ) ; driveGearShift = new Solenoid ( 4 ) ; LiveWindow . addActuator ( "Drive" , "Shifter" , driveGearShift ) ; cannonBarrelExtender = new Solenoid ( 0 ) ; LiveWindow . addActuator ( "Cannon" , "BarrelExtender" , cannonBarrelExtender ) ; cannonShootSolenoid = new Solenoid ( 1 ) ; LiveWindow . addActuator ( "Cannon" , "ShootSolenoid" , cannonShootSolenoid ) ; cannonChargeSolenoid = new Relay ( 0 ) ; LiveWindow . addActuator ( "Cannon" , "ChargeSolenoid" , cannonChargeSolenoid ) ; cannonLight = new Relay ( 1 ) ; LiveWindow . addActuator ( "Cannon" , "Light" , cannonLight ) ; cannonBarrelRotator = new CANTalon ( 5 ) ; LiveWindow . addActuator ( "Cannon" , "BarrelRotator" , cannonBarrelRotator ) ; cannonBarrelOutlimit = new DigitalInput ( 5 ) ; LiveWindow . addSensor ( "Cannon" , "BarrelOutLimit" , cannonBarrelOutlimit ) ; cannonBarrelInLimit = new DigitalInput ( 6 ) ; LiveWindow . addSensor ( "Cannon" , "BarrelInLimit" , cannonBarrelInLimit ) ; BarrelLocator = new DigitalInput ( 8 ) ; tankPressure = new AnalogInput ( 0 ) ; LiveWindow . addSensor ( "Cannon" , "TankPressure" , tankPressure ) ; }
END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DECLARATIONS
END AUTOGENERATED CODE SOURCE = ROBOTBUILDER ID = DECLARATIONS
// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS