Edit JavaDoc comment, instantiate motorVal and time variables
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / commands / shooter / RunFlyWheel.java
1 package org.usfirst.frc.team3501.robot.commands.shooter;
2
3 import edu.wpi.first.wpilibj.command.Command;
4
5 /**
6 * Runs the fly wheel at a given speed for a given time (sec)
7 *
8 * @param motorVal
9 * in ()
10 * @param time
11 * in seconds
12 * @author shaina
13 */
14 public class RunFlyWheel extends Command {
15 private double motorVal;
16 private double time;
17
18 public RunFlyWheel(double motorVal, double time) {
19 this.motorVal = motorVal;
20 this.time = time;
21 }
22
23 // Called just before this Command runs the first time
24 @Override
25 protected void initialize() {
26 }
27
28 // Called repeatedly when this Command is scheduled to run
29 @Override
30 protected void execute() {
31 }
32
33 // Called once after isFinished returns true
34 @Override
35 protected void end() {
36 }
37
38 // Called when another command which requires one or more of the same
39 // subsystems is scheduled to run
40 @Override
41 protected void interrupted() {
42 }
43
44 @Override
45 protected boolean isFinished() {
46 return false;
47 }
48
49 }