delete defense hand potentiometer
authorYamini Adusumelli <ayamini2000@gmail.com>
Fri, 29 Jan 2016 03:16:11 +0000 (19:16 -0800)
committerShaina Chen <shaina.sierra@gmail.com>
Fri, 5 Feb 2016 04:20:42 +0000 (20:20 -0800)
src/org/usfirst/frc/team3501/robot/subsystems/DefenseArm.java

index 8e49508981cc1bc5d7a2444787b567b421758b5f..7e57dbe24884e976e4025b66139202dfa9512352 100755 (executable)
@@ -13,6 +13,7 @@ public class DefenseArm extends Subsystem {
   public CANTalon defenseArmMotor;\r
   public CANTalon defenseHandMotor;\r
   public double hookHeight;\r
+  public double footHeight;\r
 \r
   // Defense arm specific constants that relate to the degrees per pulse value\r
   // for the potentiometers\r
@@ -31,7 +32,6 @@ public class DefenseArm extends Subsystem {
     defenseArmPotentiometer = new AnalogPotentiometer(\r
         Constants.DefenseArm.ARM_CHANNEL,\r
         FULL_RANGE, OFFSET);\r
-    Constants.DefenseArm.HAND_CHANNEL);\r
     defenseArmMotor = new CANTalon(Constants.DefenseArm.ARM_PORT);\r
     defenseHandMotor = new CANTalon(Constants.DefenseArm.HAND_PORT);\r
   }\r
@@ -39,16 +39,22 @@ public class DefenseArm extends Subsystem {
   /***\r
    * This method gets the height of the hook from the ground. The hook is\r
    * attached to the end of the hand, which is attached to the arm.\r
-   * \r
+   *\r
    * @return hookHeight gets height of hook from ground. The hook is attached to\r
    *         the end of the hand, which is attached the arm.\r
-   * \r
+   *\r
    */\r
 \r
   public double getHookHeight() {\r
+\r
     return hookHeight;\r
   }\r
 \r
+  public double getFootHeight() {\r
+\r
+    return footHeight;\r
+  }\r
+\r
   @Override\r
   protected void initDefaultCommand() {\r
   }\r