Remove compressor because solenoids automatically call it
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / subsystems / DriveTrain.java
index 064c1894404d28a19977f6858f12133e7ba6efdd..dc631394f8dc1e315e553af3c0f5fd5b6a40c63c 100644 (file)
@@ -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();
-  }
-
 }