add limit switch to Arm.java and port to RobotMap.java
[3501/2015-FRC-Spark] / src / org / usfirst / frc3501 / RiceCatRobot / subsystems / Arm.java
index 8d78c8f48e9e8ccac467c6617c1cc3368cb38eba..ff970400e59f5a7accda1904d647c4d348f5fb05 100644 (file)
@@ -3,14 +3,17 @@ package org.usfirst.frc3501.RiceCatRobot.subsystems;
 import org.usfirst.frc3501.RiceCatRobot.RobotMap;
 
 import edu.wpi.first.wpilibj.CANJaguar;
+import edu.wpi.first.wpilibj.DigitalInput;
 import edu.wpi.first.wpilibj.command.Subsystem;
 
 public class Arm extends Subsystem {
   private CANJaguar left, right;
+  private DigitalInput limitSwitch;
 
   public Arm() {
     left = new CANJaguar(RobotMap.ARM_LEFT);
     right = new CANJaguar(RobotMap.ARM_RIGHT);
+    limitSwitch = new DigitalInput(RobotMap.ARM_LIMIT_RIGHT);
   }
 
   public void initDefaultCommand() {