create skeleton code for intake commands
authorMeeta <fasmeeta@gmail.com>
Tue, 17 Jan 2017 04:02:09 +0000 (20:02 -0800)
committerMeeta <fasmeeta@gmail.com>
Wed, 18 Jan 2017 03:10:00 +0000 (19:10 -0800)
src/org/usfirst/frc/team3501/robot/commands/intake/RunContinuous.java [new file with mode: 0644]
src/org/usfirst/frc/team3501/robot/commands/intake/RunIntake.java [new file with mode: 0644]
src/org/usfirst/frc/team3501/robot/commands/intake/StopIntake.java [new file with mode: 0644]

diff --git a/src/org/usfirst/frc/team3501/robot/commands/intake/RunContinuous.java b/src/org/usfirst/frc/team3501/robot/commands/intake/RunContinuous.java
new file mode 100644 (file)
index 0000000..632c543
--- /dev/null
@@ -0,0 +1,45 @@
+package org.usfirst.frc.team3501.robot.commands.intake;
+
+import edu.wpi.first.wpilibj.command.Command;
+
+/***
+ *
+ * Runs the intake continuously.
+ *
+ * @author Meeta
+ *
+ */
+public class RunContinuous extends Command {
+
+  public RunContinuous() {
+
+  }
+
+  @Override
+  protected boolean isFinished() {
+    // TODO Auto-generated method stub
+    return false;
+  }
+
+  // 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() {
+  }
+
+}
diff --git a/src/org/usfirst/frc/team3501/robot/commands/intake/RunIntake.java b/src/org/usfirst/frc/team3501/robot/commands/intake/RunIntake.java
new file mode 100644 (file)
index 0000000..f5f1002
--- /dev/null
@@ -0,0 +1,42 @@
+package org.usfirst.frc.team3501.robot.commands.intake;
+
+import edu.wpi.first.wpilibj.command.Command;
+
+/**
+ *
+ * Starts running the intake for a specific period of time that the user inputs.
+ * 
+ * @author Meeta
+ */
+public class RunIntake extends Command {
+  public RunIntake(double timeToMove) {
+
+  }
+
+  @Override
+  protected boolean isFinished() {
+    // TODO Auto-generated method stub
+    return false;
+  }
+
+  // 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() {
+  }
+}
diff --git a/src/org/usfirst/frc/team3501/robot/commands/intake/StopIntake.java b/src/org/usfirst/frc/team3501/robot/commands/intake/StopIntake.java
new file mode 100644 (file)
index 0000000..6a2cc26
--- /dev/null
@@ -0,0 +1,43 @@
+package org.usfirst.frc.team3501.robot.commands.intake;
+
+import edu.wpi.first.wpilibj.command.Command;
+
+/**
+ * Stops running the intake.
+ *
+ * @author Meeta
+ *
+ */
+public class StopIntake extends Command {
+  public StopIntake() {
+
+  }
+
+  // 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;
+  }
+
+}