create commandGroup passportcullis (that will use both liftPortcullis and drive forwa...
authorCindy Zhang <cindyzyx9@gmail.com>
Mon, 15 Feb 2016 00:54:49 +0000 (16:54 -0800)
committerKevin Zhang <icestormf1@gmail.com>
Mon, 15 Feb 2016 18:55:21 +0000 (10:55 -0800)
src/org/usfirst/frc/team3501/robot/OI.java
src/org/usfirst/frc/team3501/robot/commands/auton/PassPortcullis.java [new file with mode: 0644]

index b136a3ca5a23cedab6898de65150bd12af257bb1..cc217235133db605ac73549cf3aa8755cf1785e7 100644 (file)
@@ -2,6 +2,7 @@ package org.usfirst.frc.team3501.robot;
 
 import org.usfirst.frc.team3501.robot.commands.auton.PassChevalDeFrise;
 import org.usfirst.frc.team3501.robot.commands.auton.PassDrawBridge;
+import org.usfirst.frc.team3501.robot.commands.auton.PassPortcullis;
 import org.usfirst.frc.team3501.robot.commands.auton.PassSallyPort;
 import org.usfirst.frc.team3501.robot.commands.intakearm.IntakeBall;
 import org.usfirst.frc.team3501.robot.commands.scaler.ExtendLift;
@@ -96,7 +97,7 @@ public class OI {
     passSallyPort.whenPressed(new PassSallyPort());
 
     lowerChevalDeFrise
-    .whenPressed(/* TO DO: define this, and fill in commands */);
+        .whenPressed(/* TO DO: define this, and fill in commands */);
 
     if (toggleScalingMode.get()) {
       if (!isScalingMode) {
@@ -127,7 +128,7 @@ public class OI {
     }
 
     SpinRobot180_1
-    .whenPressed(/* rotate robot 180, reorient joystick controls */);
+        .whenPressed(/* rotate robot 180, reorient joystick controls */);
 
   }
 }
diff --git a/src/org/usfirst/frc/team3501/robot/commands/auton/PassPortcullis.java b/src/org/usfirst/frc/team3501/robot/commands/auton/PassPortcullis.java
new file mode 100644 (file)
index 0000000..0d48264
--- /dev/null
@@ -0,0 +1,14 @@
+package org.usfirst.frc.team3501.robot.commands.auton;
+
+import edu.wpi.first.wpilibj.command.CommandGroup;
+
+/**
+ *
+ */
+public class PassPortcullis extends CommandGroup {
+
+  public PassPortcullis() {
+    // Use requires() here to declare subsystem dependencies
+    // eg. requires(chassis);
+  }
+}