| 1 | package org.usfirst.frc.team3501.robot.commands.shooter; |
| 2 | |
| 3 | import edu.wpi.first.wpilibj.command.Command; |
| 4 | |
| 5 | /** |
| 6 | * This command will run the index wheel motor continuously until the button |
| 7 | * triggering it is released. |
| 8 | * |
| 9 | * pre-condition: This command must be run by a button in OI. |
| 10 | * |
| 11 | * @param motorVal |
| 12 | * [-1,1] |
| 13 | * @author shaina |
| 14 | */ |
| 15 | public class RunIndexWheelContinuous extends Command { |
| 16 | private double motorVal; |
| 17 | |
| 18 | public RunIndexWheelContinuous(double motorVal) { |
| 19 | this.motorVal = motorVal; |
| 20 | } |
| 21 | |
| 22 | // Called just before this Command runs the first time |
| 23 | @Override |
| 24 | protected void initialize() { |
| 25 | } |
| 26 | |
| 27 | // Called repeatedly when this Command is scheduled to run |
| 28 | @Override |
| 29 | protected void execute() { |
| 30 | } |
| 31 | |
| 32 | // Called once after isFinished returns true |
| 33 | @Override |
| 34 | protected void end() { |
| 35 | } |
| 36 | |
| 37 | // Called when another command which requires one or more of the same |
| 38 | // subsystems is scheduled to run |
| 39 | @Override |
| 40 | protected void interrupted() { |
| 41 | } |
| 42 | |
| 43 | @Override |
| 44 | protected boolean isFinished() { |
| 45 | return false; |
| 46 | } |
| 47 | |
| 48 | } |