1 package org
.usfirst
.frc
.team3501
.robot
.commands
.shooter
;
3 import edu
.wpi
.first
.wpilibj
.command
.Command
;
6 * This command will run the index wheel motor continuously until the button
7 * triggering it is released.
9 * pre-condition: This command must be run by a button in OI with
10 * button.whileHeld(...).
14 public class RunIndexWheelContinuous
extends Command
{
15 private double motorVal
;
18 * See JavaDoc comment in class for details
21 * value range from -1 to 1
23 public RunIndexWheelContinuous(double motorVal
) {
24 this.motorVal
= motorVal
;
27 // Called just before this Command runs the first time
29 protected void initialize() {
32 // Called repeatedly when this Command is scheduled to run
34 protected void execute() {
37 // Called once after isFinished returns true
39 protected void end() {
42 // Called when another command which requires one or more of the same
43 // subsystems is scheduled to run
45 protected void interrupted() {
49 protected boolean isFinished() {