package org.usfirst.frc.team3501.robot.commands.climber;
import org.usfirst.frc.team3501.robot.Robot;
+import org.usfirst.frc.team3501.robot.subsystems.Climber;
import edu.wpi.first.wpilibj.command.Command;
*/
public class RunWinch extends Command {
+ Climber climber = Robot.getClimber();
+
private double time;
private double motorVal;
* value range is from -1 to 1
*/
public RunWinch(double time, double motorVal) {
- requires(Robot.getDriveTrain());
+ requires(climber);
this.time = time;
this.motorVal = motorVal;
}
@Override
protected void execute() {
- Robot.getDriveTrain().setMotorValues(motorVal, motorVal);
-
+ climber.setMotorValues(motorVal);
}
@Override
@Override
protected void end() {
- Robot.getDriveTrain().stop();
+ climber.stop();
}
@Override