add methods that return how far arm is sticking out and how high arm is at, and const...
authorCindy Zhang <cindyzyx9@gmail.com>
Fri, 12 Feb 2016 02:31:57 +0000 (18:31 -0800)
committerCindy Zhang <cindyzyx9@gmail.com>
Sat, 13 Feb 2016 23:38:50 +0000 (15:38 -0800)
src/org/usfirst/frc/team3501/robot/Constants.java

index a2cc4580fb0e56718dae7db9659709ba75c40e0e..c141ba25c3a36fdf1419944e7151dde095b3c946 100644 (file)
@@ -50,6 +50,7 @@ public class Constants {
 
     // Winch port
     public final static int WINCH_MOTOR = 0;
+
   }
 
   public static class Shooter {
@@ -81,21 +82,20 @@ public class Constants {
     public static final double ZERO_ANGLE = 0;
   }
 
-       public static class DefenseArm {
-               // Potentiometer related ports
-               public static final int ARM_CHANNEL = 0;
-               public static final int ARM_PORT = 0;
-               public static final int HAND_PORT = 1;
-               public static final int HAND_CHANNEL = 1;
-               public final static double FULL_RANGE = 270.0; // in degrees
-               public final static double OFFSET = -135.0; // in degrees
-               public final static double[] armPotValue = { 0.0, 45.0, 90.0 }; // 3
-                                                                                                                                               // level
-               public final static double ARM_LENGTH = 0; // TODO: find actual length
-               public final static double HAND_LENGTH = 0; // TODO: find actual length
-               public final static double ARM_MOUNTED_HEIGHT = 0; // TODO: find actual
-                                                                                                                       // height
-       }
+  public static class DefenseArm {
+    // Potentiometer related ports
+    public static final int ARM_CHANNEL = 0;
+    public static final int ARM_PORT = 0;
+    public static final int HAND_PORT = 1;
+    public static final int HAND_CHANNEL = 1;
+    public final static double FULL_RANGE = 270.0; // in degrees
+    public final static double OFFSET = -135.0; // in degrees
+    public final static double[] armPotValue = { 0.0, 45.0, 90.0 }; // 3 level
+    public final static double ARM_LENGTH = 0; // TODO: find actual length
+    public final static double HAND_LENGTH = 0; // TODO: find actual length
+    public final static double ARM_MOUNTED_HEIGHT = 0; // TODO: find actual
+                                                       // height
+  }
 
   public enum Defense {
     PORTCULLIS, SALLY_PORT, ROUGH_TERRAIN, LOW_BAR, CHEVAL_DE_FRISE, DRAWBRIDGE, MOAT, ROCK_WALL, RAMPART;