fill in the cases in the defense switch - many variables are not defined and need...
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / commands / DefaultAutonStrategy.java
index f2b07780e547181399ae0acc558d303c6d55b7eb..df21714a86ee482316b8dd49b508388456fa081e 100755 (executable)
@@ -16,20 +16,46 @@ public class DefaultAutonStrategy extends CommandGroup {
      * drive forward aim face tower aim shooter toward goal shoot
      */
 
-    // based on defense pass the defense
+    // TODO: any variable that is not declared/instantiated are vars that need
+    // to be tested for their value
+
     switch (defense) {
     case PORTCULLIS:
+      // we are assuming that the robot is also driving forward as the
+      // portcullis is being lifted
+      addSequential(new LiftPortcullis());
     case SALLY_PORT:
+      // addSequential();
     case ROUGH_TERRAIN:
+
+      addSequential(new DriveForDistance(distance, speed));
+
     case LOW_BAR:
+
+      addSequential(new DriveForDistance(distance, speed));
+
     case CHEVAL_DE_FRISE:
+
+      addSequential(new LowerChevalDeFrise());
+
     case DRAWBRIDGE:
+
+      addSequential(new LowerDrawBridge());
+
     case MOAT:
+
+      addSequential(new DriveForDistance(distance, speed));
+
     case ROCK_WALL:
+
+      addSequential(new DriveForDistance(distance, speed));
+
     case RAMPART:
+
+      addSequential(new DriveForDistance(distance, speed));
+
     default:
       break;
-
     }
 
   }