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.
15 public class RunIndexWheelContinuous
extends Command
{
16 private double motorVal
;
18 public RunIndexWheelContinuous(double motorVal
) {
19 this.motorVal
= motorVal
;
22 // Called just before this Command runs the first time
24 protected void initialize() {
27 // Called repeatedly when this Command is scheduled to run
29 protected void execute() {
32 // Called once after isFinished returns true
34 protected void end() {
37 // Called when another command which requires one or more of the same
38 // subsystems is scheduled to run
40 protected void interrupted() {
44 protected boolean isFinished() {