update TestCommandGroup and add skeleton child classes
authorEric Sandoval <harpnart@gmail.com>
Sat, 4 Feb 2017 03:33:44 +0000 (19:33 -0800)
committerEric Sandoval <harpnart@gmail.com>
Sat, 4 Feb 2017 03:33:44 +0000 (19:33 -0800)
src/org/usfirst/frc/team3501/robot/commandgroups/PrepareToShootTest.java [new file with mode: 0644]
src/org/usfirst/frc/team3501/robot/commandgroups/ShootTest.java [new file with mode: 0644]
src/org/usfirst/frc/team3501/robot/commandgroups/TestCommandGroup.java

diff --git a/src/org/usfirst/frc/team3501/robot/commandgroups/PrepareToShootTest.java b/src/org/usfirst/frc/team3501/robot/commandgroups/PrepareToShootTest.java
new file mode 100644 (file)
index 0000000..ccd367d
--- /dev/null
@@ -0,0 +1,26 @@
+package org.usfirst.frc.team3501.robot.commandgroups;
+
+public class PrepareToShootTest extends TestCommandGroup {
+
+  public PrepareToShootTest() {
+
+  }
+
+  @Override
+  protected void runCommandGroup() {
+    // TODO Auto-generated method stub
+
+  }
+
+  @Override
+  protected void setup() {
+    // TODO Auto-generated method stub
+
+  }
+
+  @Override
+  protected void teardown() {
+    addSequential(new ShootTest());
+  }
+
+}
diff --git a/src/org/usfirst/frc/team3501/robot/commandgroups/ShootTest.java b/src/org/usfirst/frc/team3501/robot/commandgroups/ShootTest.java
new file mode 100644 (file)
index 0000000..b33d8a2
--- /dev/null
@@ -0,0 +1,27 @@
+package org.usfirst.frc.team3501.robot.commandgroups;
+
+public class ShootTest extends TestCommandGroup {
+
+  public ShootTest() {
+    super();
+  }
+
+  @Override
+  protected void runCommandGroup() {
+    // TODO Auto-generated method stub
+
+  }
+
+  @Override
+  protected void setup() {
+    // TODO Auto-generated method stub
+
+  }
+
+  @Override
+  protected void teardown() {
+    // TODO Auto-generated method stub
+
+  }
+
+}
index dcf8cc19ebaff6831f613f6204dc199ed7e19529..c97ed5c13d0db6a2312af3a7b79da7c764370725 100644 (file)
@@ -4,17 +4,17 @@ import edu.wpi.first.wpilibj.command.CommandGroup;
 
 public abstract class TestCommandGroup extends CommandGroup {
 
-  private TestCommandGroup() {
+  public TestCommandGroup() {
     setup();
     runCommandGroup();
     teardown();
 
   }
 
-  abstract void runCommandGroup();
+  protected abstract void runCommandGroup();
 
-  abstract void setup();
+  protected abstract void setup();
 
-  abstract void teardown();
+  protected abstract void teardown();
 
 }