Implement some methods of RunIndexWheelContinuous class
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / commands / shooter / RunIndexWheelContinuous.java
CommitLineData
809609c9 1package org.usfirst.frc.team3501.robot.commands.shooter;
2
3import edu.wpi.first.wpilibj.command.Command;
4
5/**
89a76b33 6 * This command will run the index wheel motor continuously until the button
7 * triggering it is released.
357feb5c 8 *
973f0ac4 9 * pre-condition: This command must be run by a button in OI with
10 * button.whileHeld(...).
11 *
27d2386f 12 * @author Shaina
809609c9 13 */
14public class RunIndexWheelContinuous extends Command {
a2a99ce1 15 private double motorVal;
4f2fa45c 16
b7ef589a 17 /**
18 * See JavaDoc comment in class for details
19 *
20 * @param motorVal
21 * value range from -1 to 1
22 */
a2a99ce1 23 public RunIndexWheelContinuous(double motorVal) {
24 this.motorVal = motorVal;
4f2fa45c 25 }
26
27 // Called just before this Command runs the first time
28 @Override
29 protected void initialize() {
30 }
31
32 // Called repeatedly when this Command is scheduled to run
33 @Override
34 protected void execute() {
35 }
36
37 // Called once after isFinished returns true
38 @Override
39 protected void end() {
40 }
41
42 // Called when another command which requires one or more of the same
43 // subsystems is scheduled to run
44 @Override
45 protected void interrupted() {
46 }
47
48 @Override
49 protected boolean isFinished() {
50 return false;
51 }
809609c9 52
53}