set up the switch statement for the defenses
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / commands / DefaultAutonStrategy.java
index 5eaab4571871a620b165d3d894723a2079a4fe3c..f2b07780e547181399ae0acc558d303c6d55b7eb 100755 (executable)
@@ -1,5 +1,7 @@
 package org.usfirst.frc.team3501.robot.commands;
 
+import org.usfirst.frc.team3501.robot.Constants.Defense;
+
 import edu.wpi.first.wpilibj.command.CommandGroup;
 
 /**
@@ -8,7 +10,7 @@ import edu.wpi.first.wpilibj.command.CommandGroup;
  */
 public class DefaultAutonStrategy extends CommandGroup {
 
-  public DefaultAutonStrategy(int position, int defense) {
+  public DefaultAutonStrategy(int position, Defense defense) {
     /*
      * pass defense drive forward do what has to be done to pass the defense
      * drive forward aim face tower aim shooter toward goal shoot
@@ -16,11 +18,18 @@ public class DefaultAutonStrategy extends CommandGroup {
 
     // based on defense pass the defense
     switch (defense) {
-    case 1:
-    case 2:
-    case 3:
-    case 4:
-    case 5:
+    case PORTCULLIS:
+    case SALLY_PORT:
+    case ROUGH_TERRAIN:
+    case LOW_BAR:
+    case CHEVAL_DE_FRISE:
+    case DRAWBRIDGE:
+    case MOAT:
+    case ROCK_WALL:
+    case RAMPART:
+    default:
+      break;
+
     }
 
   }