Edit JavaDoc comments in shooter commands
[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 * This command runs the fly wheel at a given speed for a given time. The fly
7 * wheel is intended to shoot balls fed by the intake wheel.
8 *
9 * @param motorVal
10 * value range from -1 to 1
11 * @param time
12 * in seconds
13 * @author Shaina
14 */
15 public class RunFlyWheel extends Command {
16 private double motorVal;
17 private double time;
18
19 public RunFlyWheel(double motorVal, double time) {
20 this.motorVal = motorVal;
21 this.time = time;
22 }
23
24 // Called just before this Command runs the first time
25 @Override
26 protected void initialize() {
27 }
28
29 // Called repeatedly when this Command is scheduled to run
30 @Override
31 protected void execute() {
32 }
33
34 // Called once after isFinished returns true
35 @Override
36 protected void end() {
37 }
38
39 // Called when another command which requires one or more of the same
40 // subsystems is scheduled to run
41 @Override
42 protected void interrupted() {
43 }
44
45 @Override
46 protected boolean isFinished() {
47 return false;
48 }
49
50 }