Implement RunFLyWheel class, add motor methods to Shooter class
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / commands / shooter / RunIndexWheel.java
CommitLineData
809609c9 1package org.usfirst.frc.team3501.robot.commands.shooter;
2
3import edu.wpi.first.wpilibj.command.Command;
4
5/**
973f0ac4 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 *
27d2386f 11 * @author Shaina
809609c9 12 */
13public class RunIndexWheel extends Command {
c0860df7 14 private double time;
15 private double motorVal;
16
b7ef589a 17 /**
18 * See JavaDoc comment in class for details
19 *
20 * @param motorVal
21 * value range from -1 to 1
22 * @param time
23 * in seconds, amount of time to run index wheel motor
24 */
c0860df7 25 public RunIndexWheel(double motorVal, double time) {
26 this.motorVal = motorVal;
27 this.time = time;
28 }
29
30 // Called just before this Command runs the first time
31 @Override
32 protected void initialize() {
33 }
34
35 // Called repeatedly when this Command is scheduled to run
36 @Override
37 protected void execute() {
38 }
39
40 // Called once after isFinished returns true
41 @Override
42 protected void end() {
43 }
44
45 // Called when another command which requires one or more of the same
46 // subsystems is scheduled to run
47 @Override
48 protected void interrupted() {
49 }
50
51 @Override
52 protected boolean isFinished() {
53 return false;
54 }
809609c9 55
56}