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=f30d4c2d2d41c8e62fd4b01e78cd054e75e8b89a;hp=f7c35a9108cdf161ac0c3597bf85ca350e63073d;hb=cef1f36da71950bc32d74d2ba0477a51f478f209;hpb=5c1a9af18efcd2cea4d52d361421e6b9b90ac7f7 diff --git a/src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java b/src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java index f7c35a9..f30d4c2 100644 --- a/src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java +++ b/src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java @@ -32,6 +32,9 @@ public class DriveTrain extends Subsystem { private ADXRS450_Gyro imu; + private boolean isClimbing; + private static double CLIMBER_SPEED;; + private DriveTrain() { // MOTOR CONTROLLERS frontLeft = new CANTalon(Constants.DriveTrain.FRONT_LEFT); @@ -60,6 +63,8 @@ public class DriveTrain extends Subsystem { rightGearPiston = new DoubleSolenoid(Constants.DriveTrain.MODULE_NUMBER, Constants.DriveTrain.RIGHT_GEAR_PISTON_FORWARD, Constants.DriveTrain.RIGHT_GEAR_PISTON_REVERSE); + + CLIMBER_SPEED = Constants.DriveTrain.CLIMBER_SPEED; } public static DriveTrain getDriveTrain() { @@ -183,4 +188,12 @@ public class DriveTrain extends Subsystem { setDefaultCommand(new JoystickDrive()); } + public boolean isClimbing() { + return this.isClimbing; + } + + public double getClimbingSpeed() { + return this.CLIMBER_SPEED; + } + }