Create command package for shooter and create skeleton commands
authorshainachen <shaina.sierra@gmail.com>
Thu, 12 Jan 2017 04:37:42 +0000 (20:37 -0800)
committerCindy Zhang <cindyzyx9@gmail.com>
Sat, 14 Jan 2017 22:28:36 +0000 (14:28 -0800)
src/org/usfirst/frc/team3501/robot/commands/shooter/RunFlyWheel.java [new file with mode: 0644]
src/org/usfirst/frc/team3501/robot/commands/shooter/RunFlyWheelContinuous.java [new file with mode: 0644]
src/org/usfirst/frc/team3501/robot/commands/shooter/RunIndexWheel.java [new file with mode: 0644]
src/org/usfirst/frc/team3501/robot/commands/shooter/RunIndexWheelContinuous.java [new file with mode: 0644]
src/org/usfirst/frc/team3501/robot/commands/shooter/StopFlyWheel.java [new file with mode: 0644]
src/org/usfirst/frc/team3501/robot/commands/shooter/StopIndexWheel.java [new file with mode: 0644]
src/org/usfirst/frc/team3501/robot/subsystems/Shooter.java

diff --git a/src/org/usfirst/frc/team3501/robot/commands/shooter/RunFlyWheel.java b/src/org/usfirst/frc/team3501/robot/commands/shooter/RunFlyWheel.java
new file mode 100644 (file)
index 0000000..6a6e950
--- /dev/null
@@ -0,0 +1,21 @@
+package org.usfirst.frc.team3501.robot.commands.shooter;
+
+import edu.wpi.first.wpilibj.command.Command;
+
+/**
+ * Runs the fly wheel at a given speed in () for input time in seconds
+ *
+ * @param speed
+ *            in ()
+ * @param time
+ *            in seconds
+ */
+public class RunFlyWheel extends Command {
+
+       @Override
+       protected boolean isFinished() {
+               // TODO Auto-generated method stub
+               return false;
+       }
+
+}
diff --git a/src/org/usfirst/frc/team3501/robot/commands/shooter/RunFlyWheelContinuous.java b/src/org/usfirst/frc/team3501/robot/commands/shooter/RunFlyWheelContinuous.java
new file mode 100644 (file)
index 0000000..c294938
--- /dev/null
@@ -0,0 +1,16 @@
+package org.usfirst.frc.team3501.robot.commands.shooter;
+
+import edu.wpi.first.wpilibj.command.Command;
+
+/**
+ * Runs fly wheel continuously until ________
+ */
+public class RunFlyWheelContinuous extends Command {
+
+       @Override
+       protected boolean isFinished() {
+               // TODO Auto-generated method stub
+               return false;
+       }
+
+}
diff --git a/src/org/usfirst/frc/team3501/robot/commands/shooter/RunIndexWheel.java b/src/org/usfirst/frc/team3501/robot/commands/shooter/RunIndexWheel.java
new file mode 100644 (file)
index 0000000..74a7d70
--- /dev/null
@@ -0,0 +1,21 @@
+package org.usfirst.frc.team3501.robot.commands.shooter;
+
+import edu.wpi.first.wpilibj.command.Command;
+
+/**
+ * Runs index wheel at a given speed in () for input time in seconds
+ *
+ * @param speed
+ *            in ()
+ * @param time
+ *            in seconds
+ */
+public class RunIndexWheel extends Command {
+
+       @Override
+       protected boolean isFinished() {
+               // TODO Auto-generated method stub
+               return false;
+       }
+
+}
diff --git a/src/org/usfirst/frc/team3501/robot/commands/shooter/RunIndexWheelContinuous.java b/src/org/usfirst/frc/team3501/robot/commands/shooter/RunIndexWheelContinuous.java
new file mode 100644 (file)
index 0000000..77ebe24
--- /dev/null
@@ -0,0 +1,16 @@
+package org.usfirst.frc.team3501.robot.commands.shooter;
+
+import edu.wpi.first.wpilibj.command.Command;
+
+/**
+ * Runs index wheel continuously until ________
+ */
+public class RunIndexWheelContinuous extends Command {
+
+       @Override
+       protected boolean isFinished() {
+               // TODO Auto-generated method stub
+               return false;
+       }
+
+}
diff --git a/src/org/usfirst/frc/team3501/robot/commands/shooter/StopFlyWheel.java b/src/org/usfirst/frc/team3501/robot/commands/shooter/StopFlyWheel.java
new file mode 100644 (file)
index 0000000..68c6cf0
--- /dev/null
@@ -0,0 +1,38 @@
+package org.usfirst.frc.team3501.robot.commands.shooter;
+
+import edu.wpi.first.wpilibj.command.Command;
+
+public class StopFlyWheel extends Command {
+
+       /**
+        * Stops fly wheel
+        */
+
+       // Called just before this Command runs the first time
+       @Override
+       protected void initialize() {
+       }
+
+       // Called repeatedly when this Command is scheduled to run
+       @Override
+       protected void execute() {
+       }
+
+       // Called once after isFinished returns true
+       @Override
+       protected void end() {
+       }
+
+       // Called when another command which requires one or more of the same
+       // subsystems is scheduled to run
+       @Override
+       protected void interrupted() {
+       }
+
+       @Override
+       protected boolean isFinished() {
+               // TODO Auto-generated method stub
+               return false;
+       }
+
+}
diff --git a/src/org/usfirst/frc/team3501/robot/commands/shooter/StopIndexWheel.java b/src/org/usfirst/frc/team3501/robot/commands/shooter/StopIndexWheel.java
new file mode 100644 (file)
index 0000000..0af4929
--- /dev/null
@@ -0,0 +1,40 @@
+package org.usfirst.frc.team3501.robot.commands.shooter;
+
+import edu.wpi.first.wpilibj.command.Command;
+
+/**
+ * Stops index wheel
+ */
+public class StopIndexWheel extends Command {
+       public StopIndexWheel() {
+
+       }
+
+       // Called just before this Command runs the first time
+       @Override
+       protected void initialize() {
+       }
+
+       // Called repeatedly when this Command is scheduled to run
+       @Override
+       protected void execute() {
+       }
+
+       // Called once after isFinished returns true
+       @Override
+       protected void end() {
+       }
+
+       // Called when another command which requires one or more of the same
+       // subsystems is scheduled to run
+       @Override
+       protected void interrupted() {
+       }
+
+       @Override
+       protected boolean isFinished() {
+               // TODO Auto-generated method stub
+               return false;
+       }
+
+}
index 2181b56c522b23ddea8dcef7f49ceff15ed14e5d..759a232e443617a67715c80ccc09c9fe6ff1e0cd 100644 (file)
@@ -14,7 +14,7 @@ public class Shooter {
 
        /**
         * Runs the fly wheel at a given speed in () for input time in seconds
-        * 
+        *
         * @param speed
         *            in ()
         * @param time
@@ -33,7 +33,7 @@ public class Shooter {
 
        /**
         * Runs index wheel at a given speed in () for input time in seconds
-        * 
+        *
         * @param speed
         *            in ()
         * @param time