Created get arm angle method inside Arm class
[3501/2015-FRC-Spark] / src / org / usfirst / frc3501 / RiceCatRobot / subsystems / Arm.java
index c425370a3867bd6a45ae593077cf6fe1f81cee11..e3f5f9a866f5d979136a9eac653603c23bd1b0d7 100644 (file)
@@ -20,6 +20,10 @@ public class Arm extends Subsystem {
     analogPotentiometer = new AnalogPotentiometer(analogInput, ANGLE_RANGE, INITIAL_ANGLE);
   }
 
+  public double getArmAngle() {
+         return analogPotentiometer.get();
+  }
+  
   public void initDefaultCommand() {
   }