private CANTalon defenseHand;
private double hookHeight;
private double footHeight;
- private double[] potAngles = { 0, 45, 90 };
-
+ private Double[] potAngles; // change name, 5 to another #
// array;
public DefenseArm() {
return defenseHandPotentiometer.get();
}
+ public double getDistance(int desiredArmLocation) {
+ return potAngles[desiredArmLocation];
+ }
+
+ public Double[] putInValues() {
+ for (int i = 0; i < 3; i++) {
+ potAngles[i] = (double) (45 * i);
+ }
+ return potAngles;
+ }
+
/***
* This method sets the voltage of the arm motor. The range is from [-1,1]. A
* negative voltage makes the direction of the motor go backwards.