X-Git-Url: http://challenge-bot.com/repos/?p=3501%2F2017steamworks;a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fcommands%2Fclimber%2FRunWinchContinuous.java;h=210199d86e2cb3dc178fb5d289f0446e4147368f;hp=65277997b70fd20ccad3d85fbe60b2b5a8eb23c1;hb=9dc69158f74215de20fd5fdcee299020e8f2b88b;hpb=25ef99e622af7d7dbd7ddb6c9c1a7ec7e71b0b77 diff --git a/src/org/usfirst/frc/team3501/robot/commands/climber/RunWinchContinuous.java b/src/org/usfirst/frc/team3501/robot/commands/climber/RunWinchContinuous.java index 6527799..210199d 100644 --- a/src/org/usfirst/frc/team3501/robot/commands/climber/RunWinchContinuous.java +++ b/src/org/usfirst/frc/team3501/robot/commands/climber/RunWinchContinuous.java @@ -1,6 +1,7 @@ package org.usfirst.frc.team3501.robot.commands.climber; import org.usfirst.frc.team3501.robot.Robot; +import org.usfirst.frc.team3501.robot.subsystems.DriveTrain; import edu.wpi.first.wpilibj.command.Command; @@ -17,6 +18,8 @@ import edu.wpi.first.wpilibj.command.Command; * */ public class RunWinchContinuous extends Command { + DriveTrain driveTrain = Robot.getDriveTrain(); + private double climbingSpeed; /** * See JavaDoc comment in class for details @@ -25,19 +28,17 @@ public class RunWinchContinuous extends Command { * value range is from -1 to 1 */ public RunWinchContinuous() { - requires(Robot.getDriveTrain()); + requires(driveTrain); + climbingSpeed = driveTrain.CLIMBER_SPEED; } @Override protected void initialize() { - Robot.getDriveTrain().setMotorValues( - Robot.getDriveTrain().getClimbingSpeed(), - Robot.getDriveTrain().getClimbingSpeed()); } @Override protected void execute() { - + Robot.getDriveTrain().setMotorValues(climbingSpeed, climbingSpeed); } @Override