1 package org
.usfirst
.frc
.team3501
.robot
.commands
.shooter
;
3 import edu
.wpi
.first
.wpilibj
.command
.Command
;
6 * This command will run the fly 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(...).
16 public class RunFlyWheelContinuous
extends Command
{
17 private double motorVal
;
19 public RunFlyWheelContinuous(double motorVal
) {
20 this.motorVal
= motorVal
;
23 // Called just before this Command runs the first time
25 protected void initialize() {
28 // Called repeatedly when this Command is scheduled to run
30 protected void execute() {
33 // Called once after isFinished returns true
35 protected void end() {
38 // Called when another command which requires one or more of the same
39 // subsystems is scheduled to run
41 protected void interrupted() {
46 protected boolean isFinished() {