X-Git-Url: http://challenge-bot.com/repos/?p=3501%2Fstronghold-2016;a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fsubsystems%2FDriveTrain.java;fp=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fsubsystems%2FDriveTrain.java;h=dc631394f8dc1e315e553af3c0f5fd5b6a40c63c;hp=064c1894404d28a19977f6858f12133e7ba6efdd;hb=cc64f0189c06a995e740d978a837612d15a7bbcc;hpb=13eda6855c76fed9ed693e08b62a0424b92c2c12 diff --git a/src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java b/src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java index 064c1894..dc631394 100644 --- a/src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java +++ b/src/org/usfirst/frc/team3501/robot/subsystems/DriveTrain.java @@ -7,7 +7,6 @@ import org.usfirst.frc.team3501.robot.sensors.GyroLib; import org.usfirst.frc.team3501.robot.sensors.Lidar; import edu.wpi.first.wpilibj.CANTalon; -import edu.wpi.first.wpilibj.Compressor; import edu.wpi.first.wpilibj.CounterBase.EncodingType; import edu.wpi.first.wpilibj.DoubleSolenoid; import edu.wpi.first.wpilibj.DoubleSolenoid.Value; @@ -30,7 +29,6 @@ public class DriveTrain extends PIDSubsystem { private GyroLib gyro; private DoubleSolenoid leftGearPiston, rightGearPiston; - private Compressor compressor; // Drivetrain specific constants that relate to the inches per pulse value for // the encoders @@ -69,8 +67,6 @@ public class DriveTrain extends PIDSubsystem { rightGearPiston = new DoubleSolenoid(Constants.DriveTrain.MODULE_B_ID, Constants.DriveTrain.RIGHT_FORWARD, Constants.DriveTrain.RIGHT_REVERSE); - compressor = new Compressor(Constants.DriveTrain.COMPRESSOR_ID); - Constants.DriveTrain.inverted = false; } @@ -369,19 +365,4 @@ public class DriveTrain extends PIDSubsystem { rightGearPiston.set(gear); } - public void startCompressor() { - compressor.start(); - } - - public void stopCompressor() { - compressor.stop(); - } - - public void toggleCompressor() { - if (compressor.enabled()) - compressor.stop(); - else - compressor.start(); - } - }