Edit JavaDoc comment, instantiate motorVal and time variables
authorshainachen <shaina.sierra@gmail.com>
Sat, 14 Jan 2017 21:19:03 +0000 (13:19 -0800)
committerCindy Zhang <cindyzyx9@gmail.com>
Sat, 14 Jan 2017 22:28:37 +0000 (14:28 -0800)
src/org/usfirst/frc/team3501/robot/commands/shooter/RunFlyWheel.java

index 0ab2e4adf7225b1139f5bcc38c7c8d1d02b34422..5a60707ee75053d9afaf2d6304bbc50608fc3c51 100644 (file)
@@ -3,43 +3,47 @@ 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
+ * Runs the fly wheel at a given speed for a given time (sec)
  *
- * @param speed
- *            in ()
+ * @param motorVal
+ *          in ()
  * @param time
- *            in seconds
+ *          in seconds
+ * @author shaina
  */
 public class RunFlyWheel extends Command {
-       public RunFlyWheel() {
-
-       }
-
-       // 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;
-       }
+  private double motorVal;
+  private double time;
+
+  public RunFlyWheel(double motorVal, double time) {
+    this.motorVal = motorVal;
+    this.time = time;
+  }
+
+  // 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() {
+    return false;
+  }
 
 }