package org.usfirst.frc4909.STEAMWORKS.subsystems;

import org.usfirst.frc4909.STEAMWORKS.RobotMap;
import org.usfirst.frc4909.STEAMWORKS.commands.*;

import edu.wpi.first.wpilibj.Encoder;
import edu.wpi.first.wpilibj.PowerDistributionPanel;
import edu.wpi.first.wpilibj.SpeedController;

import edu.wpi.first.wpilibj.command.Subsystem;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;

public class Climber extends Subsystem {
    private final SpeedController climberMotorController = RobotMap.climberClimberMotorController;
    private final Encoder climberEncoder = RobotMap.climberClimberEncoder;

    private final PowerDistributionPanel PDP = RobotMap.PDP;

    public void initDefaultCommand() {
    	setDefaultCommand(new ClimbCommand());
    }
    
    public void climb(double speed){
    	SmartDashboard.putNumber("Current", PDP.getCurrent(11));
    	
    	climberMotorController.set(speed);
    }
}
@@ -144,16 +144,59 @@
 nds.*;%0A%0A
+import edu.wpi.first.wpilibj.DigitalInput;%0A
 import e
@@ -225,16 +225,16 @@
 ncoder;%0A
-
 import e
@@ -649,17 +649,83 @@
 ncoder;%0A
+    private final DigitalInput climbSwitch=RobotMap.climberSwitch;
 %0A
-
     priv
@@ -977,16 +977,16 @@
 ;%0A    %09%0A
-
     %09cli
@@ -1023,9 +1023,89 @@
 ;%0A    %7D%0A
+    %0A    public boolean getSwitch() %7B%0A        return (climbSwitch.get());%0A    %7D%0A
 %7D

Switch added