add three more limit switches due to change in strategy
[3501/2015-FRC-Spark] / src / org / usfirst / frc3501 / RiceCatRobot / subsystems / Arm.java
index ff970400e59f5a7accda1904d647c4d348f5fb05..cb0cc38a3d5732e09b475c9018641ba7ce548d9f 100644 (file)
@@ -8,12 +8,15 @@ import edu.wpi.first.wpilibj.command.Subsystem;
 
 public class Arm extends Subsystem {
   private CANJaguar left, right;
-  private DigitalInput limitSwitch;
+  private DigitalInput limit1, limit2, limit3, limit4;
 
   public Arm() {
     left = new CANJaguar(RobotMap.ARM_LEFT);
     right = new CANJaguar(RobotMap.ARM_RIGHT);
-    limitSwitch = new DigitalInput(RobotMap.ARM_LIMIT_RIGHT);
+    limit1 = new DigitalInput(RobotMap.ARM_LIMIT_1);
+    limit2 = new DigitalInput(RobotMap.ARM_LIMIT_2);
+    limit3 = new DigitalInput(RobotMap.ARM_LIMIT_3);
+    limit4 = new DigitalInput(RobotMap.ARM_LIMIT_4);
   }
 
   public void initDefaultCommand() {