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