From: Shaina Chen Date: Fri, 5 Feb 2016 02:49:10 +0000 (-0800) Subject: change method name from getDistance to getAngleForLevel and add javadoc style comment... X-Git-Url: http://challenge-bot.com/repos/?p=3501%2Fstronghold-2016;a=commitdiff_plain;h=64f47e4f4ef66e40434502fcbcc3d6972f969419 change method name from getDistance to getAngleForLevel and add javadoc style comment for getAngleForLevel method --- diff --git a/src/org/usfirst/frc/team3501/robot/subsystems/DefenseArm.java b/src/org/usfirst/frc/team3501/robot/subsystems/DefenseArm.java index 3c6309b4..81365c88 100755 --- a/src/org/usfirst/frc/team3501/robot/subsystems/DefenseArm.java +++ b/src/org/usfirst/frc/team3501/robot/subsystems/DefenseArm.java @@ -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]; }