change method name from getDistance to getAngleForLevel and add javadoc style comment...
authorShaina Chen <shaina.sierra@gmail.com>
Fri, 5 Feb 2016 02:49:10 +0000 (18:49 -0800)
committerShaina Chen <shaina.sierra@gmail.com>
Fri, 5 Feb 2016 04:21:31 +0000 (20:21 -0800)
src/org/usfirst/frc/team3501/robot/subsystems/DefenseArm.java

index 3c6309b474d1ca48c33e57a87193972881f7ea18..81365c88a1f4bd85b8b75e64106f199373b5ca85 100755 (executable)
@@ -39,7 +39,18 @@ public class DefenseArm extends Subsystem {
     return defenseHandPotentiometer.get();
   }
 
-  public double getDistance(int desiredArmLocation) {
+  /***
+   * This method takes an arm location as input (range of [0,2])
+   * Returns the angle of the arm corresponding to that arm location
+   *
+   * @param desiredArmLocation
+   *          takes an arm location ranging from [0,2]
+   *          0 is the lowest position of arm
+   *          2 is the highest position of arm
+   * @return
+   *         the angle of the arm corresponding to that arm location
+   */
+  public double getAngleForLocation(int desiredArmLocation) {
     return potAngles[desiredArmLocation];
   }