X-Git-Url: http://challenge-bot.com/repos/?p=3501%2F2017steamworks;a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fsubsystems%2FDriveTrain.java;h=7463b8685faa504319777e830231c066b8088154;hp=f30d4c2d2d41c8e62fd4b01e78cd054e75e8b89a;hb=25ef99e622af7d7dbd7ddb6c9c1a7ec7e71b0b77;hpb=cef1f36da71950bc32d74d2ba0477a51f478f209 diff --git a/src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java b/src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java index f30d4c2..7463b86 100644 --- a/src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java +++ b/src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java @@ -81,6 +81,7 @@ public class DriveTrain extends Subsystem { frontRight.set(-right); rearRight.set(-right); + this.isClimbing = true; } public void joystickDrive(final double thrust, final double twist) { @@ -89,6 +90,7 @@ public class DriveTrain extends Subsystem { public void stop() { setMotorValues(0, 0); + this.isClimbing = false; } public double getLeftMotorVal() { @@ -192,6 +194,10 @@ public class DriveTrain extends Subsystem { return this.isClimbing; } + public void setClimbing(boolean isClimbing) { + this.isClimbing = isClimbing; + } + public double getClimbingSpeed() { return this.CLIMBER_SPEED; }