package org.usfirst.frc.team3501.robot.commands.climber;
+import org.usfirst.frc.team3501.robot.Robot;
+
import edu.wpi.first.wpilibj.command.Command;
/**
private double motorVal;
public RunWinchContinuous(double motorVal) {
+ requires(Robot.getClimber());
this.motorVal = motorVal;
}
@Override
protected void end() {
-
+ Robot.getClimber().stop();
}
@Override
protected void interrupted() {
+ end();
}
}
package org.usfirst.frc.team3501.robot.commands.climber;
+import org.usfirst.frc.team3501.robot.Robot;
+
import edu.wpi.first.wpilibj.command.Command;
/**
public class StopWinch extends Command {
public StopWinch() {
+ requires(Robot.getClimber());
}
@Override