Created skeleton code for the align shooter commandgroups
authorTrevor <tr89on@gmail.com>
Sat, 4 Feb 2017 23:33:02 +0000 (15:33 -0800)
committerTrevor <tr89on@gmail.com>
Wed, 8 Feb 2017 05:11:45 +0000 (21:11 -0800)
src/org/usfirst/frc/team3501/robot/commandgroups/BaselineWallAlign.java [new file with mode: 0644]
src/org/usfirst/frc/team3501/robot/commandgroups/BoilerPegAlign.java [new file with mode: 0644]
src/org/usfirst/frc/team3501/robot/commandgroups/KeyAllianceWallAlign.java [new file with mode: 0644]
src/org/usfirst/frc/team3501/robot/commandgroups/MiddlePegAlign.java [new file with mode: 0644]

diff --git a/src/org/usfirst/frc/team3501/robot/commandgroups/BaselineWallAlign.java b/src/org/usfirst/frc/team3501/robot/commandgroups/BaselineWallAlign.java
new file mode 100644 (file)
index 0000000..b284b92
--- /dev/null
@@ -0,0 +1,21 @@
+package org.usfirst.frc.team3501.robot.commandgroups;
+
+import org.usfirst.frc.team3501.robot.commands.driving.DriveDistance;
+import org.usfirst.frc.team3501.robot.commands.driving.TurnForAngle;
+
+import edu.wpi.first.wpilibj.command.CommandGroup;
+
+/**
+ *
+ */
+public class BaselineWallAlign extends CommandGroup {
+
+  public BaselineWallAlign() {
+    addSequential(new DriveDistance(0, 0));
+    addSequential(new TurnForAngle(0, LEFT, 0));
+    addSequential(new DriveDistance(0, 0));
+    addSequential(new TurnForAngle(0, LEFT, 0));
+    addSequential(new PrepareToShoot());
+
+  }
+}
diff --git a/src/org/usfirst/frc/team3501/robot/commandgroups/BoilerPegAlign.java b/src/org/usfirst/frc/team3501/robot/commandgroups/BoilerPegAlign.java
new file mode 100644 (file)
index 0000000..c053f54
--- /dev/null
@@ -0,0 +1,22 @@
+package org.usfirst.frc.team3501.robot.commandgroups;
+
+import org.usfirst.frc.team3501.robot.commands.driving.DriveDistance;
+import org.usfirst.frc.team3501.robot.commands.driving.TurnForAngle;
+
+import edu.wpi.first.wpilibj.command.CommandGroup;
+
+/**
+ *
+ */
+public class BoilerPegAlign extends CommandGroup {
+
+  public BoilerPegAlign() {
+    addSequential(new DriveDistance(0, 0));
+    addSequential(new TurnForAngle(0, LEFT, 0));
+    addSequential(new DriveDistance(0, 0));
+    addSequential(new TurnForAngle(0, LEFT, 0));
+    addSequential(new DriveDistance(0, 0));
+    addSequential(new PrepareToShoot());
+
+  }
+}
diff --git a/src/org/usfirst/frc/team3501/robot/commandgroups/KeyAllianceWallAlign.java b/src/org/usfirst/frc/team3501/robot/commandgroups/KeyAllianceWallAlign.java
new file mode 100644 (file)
index 0000000..508487c
--- /dev/null
@@ -0,0 +1,18 @@
+package org.usfirst.frc.team3501.robot.commandgroups;
+
+import org.usfirst.frc.team3501.robot.commands.driving.DriveDistance;
+import org.usfirst.frc.team3501.robot.commands.driving.TurnForAngle;
+
+import edu.wpi.first.wpilibj.command.CommandGroup;
+
+/**
+ *
+ */
+public class KeyAllianceWallAlign extends CommandGroup {
+
+  public KeyAllianceWallAlign() {
+    addSequential(new TurnForAngle(0, LEFT, 0));
+    addSequential(new DriveDistance(0, 0));
+    addSequential(new PrepareToShoot());
+  }
+}
diff --git a/src/org/usfirst/frc/team3501/robot/commandgroups/MiddlePegAlign.java b/src/org/usfirst/frc/team3501/robot/commandgroups/MiddlePegAlign.java
new file mode 100644 (file)
index 0000000..60061a8
--- /dev/null
@@ -0,0 +1,19 @@
+package org.usfirst.frc.team3501.robot.commandgroups;
+
+import org.usfirst.frc.team3501.robot.commands.driving.DriveDistance;
+import org.usfirst.frc.team3501.robot.commands.driving.TurnForAngle;
+
+import edu.wpi.first.wpilibj.command.CommandGroup;
+
+/**
+ *
+ */
+public class MiddlePegAlign extends CommandGroup {
+
+  public MiddlePegAlign() {
+    addSequential(new DriveDistance(0, 0));
+    addSequential(new TurnForAngle(0, LEFT, 0));
+    addSequential(new DriveDistance(0, 0));
+    addSequential(new PrepareToShoot());
+  }
+}