fix compile errors that somehow got into master
authorKevin Zhang <icestormf1@gmail.com>
Sat, 13 Feb 2016 05:08:36 +0000 (21:08 -0800)
committerCindy Zhang <cindyzyx9@gmail.com>
Sat, 13 Feb 2016 23:32:48 +0000 (15:32 -0800)
src/org/usfirst/frc/team3501/robot/Constants.java
src/org/usfirst/frc/team3501/robot/Robot.java

index 2e7de2ac2ac3581f5203065b520f384842944979..a2cc4580fb0e56718dae7db9659709ba75c40e0e 100644 (file)
@@ -78,21 +78,24 @@ public class Constants {
     public static final double OUTPUT_SPEED = -0.5;
     public final static double FULL_RANGE = 270.0; // in degrees
     public final static double OFFSET = -135.0; // in degrees
+    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
-  }
+       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;
index f4001774cf4e607cfcbb9aa3e1763557c1cf0eda..3a2ca7d0a4594856c790b1a511d859f9cadd3066 100644 (file)
@@ -13,12 +13,12 @@ import edu.wpi.first.wpilibj.smartdashboard.SendableChooser;
 import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
 
 public class Robot extends IterativeRobot {
-       public static OI oi;
-       public static DriveTrain driveTrain;
-       public static Shooter shooter;
-       public static Scaler scaler;
-       public static IntakeArm intakeArm;
-       public static DefenseArm defenseArm;
+  public static OI oi;
+  public static DriveTrain driveTrain;
+  public static Shooter shooter;
+  public static Scaler scaler;
+  public static IntakeArm intakeArm;
+  public static DefenseArm defenseArm;
 
   // Sendable Choosers send a drop down menu to the Smart Dashboard.
   SendableChooser positionChooser;
@@ -87,10 +87,10 @@ public class Robot extends IterativeRobot {
     SmartDashboard.putData("Position Two Defense Chooser", positionTwoDefense);
     SmartDashboard.putData("Position Three Defense Chooser",
         positionThreeDefense);
-    SmartDashboard.putData("Position Four Defense Chooser",
-        positionFourDefense);
-    SmartDashboard.putData("Position Five Defense Chooser",
-        positionFiveDefense);
+    SmartDashboard
+        .putData("Position Four Defense Chooser", positionFourDefense);
+    SmartDashboard
+        .putData("Position Five Defense Chooser", positionFiveDefense);
   }
 
   @Override