1 package org
.usfirst
.frc
.team3501
.robot
.commands
.shooter
;
3 import org
.usfirst
.frc
.team3501
.robot
.Robot
;
5 import edu
.wpi
.first
.wpilibj
.command
.Command
;
8 * This command will run the index wheel motor continuously until the button
9 * triggering it is released.
11 * pre-condition: This command must be run by a button in OI with
12 * button.whileHeld(...).
16 public class RunIndexWheelContinuous
extends Command
{
17 private double motorVal
;
20 * See JavaDoc comment in class for details
23 * value range from -1 to 1
25 public RunIndexWheelContinuous(double motorVal
) {
26 this.motorVal
= motorVal
;
29 // Called just before this Command runs the first time
31 protected void initialize() {
32 Robot
.getShooter().setIndexWheelMotorVal(motorVal
);
35 // Called repeatedly when this Command is scheduled to run
37 protected void execute() {
40 // Called once after isFinished returns true
42 protected void end() {
45 // Called when another command which requires one or more of the same
46 // subsystems is scheduled to run
48 protected void interrupted() {
53 protected boolean isFinished() {