Implement RunWinchContinuous
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / commands / climber / RunWinchContinuous.java
CommitLineData
9738295a
SG
1package org.usfirst.frc.team3501.robot.commands.climber;
2
a04ce2ff
SG
3import org.usfirst.frc.team3501.robot.Robot;
4
9738295a
SG
5import edu.wpi.first.wpilibj.command.Command;
6
7/**
8 * Runs the winch continuously at a given motor value
9 *
10 * @author shivanighanta
11 *
12 */
13public class RunWinchContinuous extends Command {
14 private double motorVal;
15
16 public RunWinchContinuous(double motorVal) {
a04ce2ff 17 requires(Robot.getClimber());
9738295a
SG
18 this.motorVal = motorVal;
19 }
20
21 @Override
22 protected void initialize() {
23 }
24
25 @Override
26 protected void execute() {
27
28 }
29
30 @Override
31 protected boolean isFinished() {
32 return false;
33 }
34
35 @Override
36 protected void end() {
a04ce2ff 37 Robot.getClimber().stop();
9738295a
SG
38 }
39
40 @Override
41 protected void interrupted() {
a04ce2ff 42 end();
9738295a
SG
43 }
44}