fill in the cases in the defense switch - many variables are not defined and need...
authorMeryem Esa <meresa14@gmail.com>
Fri, 29 Jan 2016 04:46:14 +0000 (20:46 -0800)
committerKevin Zhang <icestormf1@gmail.com>
Sun, 31 Jan 2016 00:04:37 +0000 (16:04 -0800)
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;
-
     }
 
   }