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;
private GyroLib gyro;
private DoubleSolenoid leftGearPiston, rightGearPiston;
- private Compressor compressor;
// Drivetrain specific constants that relate to the inches per pulse value for
// the encoders
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;
}
rightGearPiston.set(gear);
}
- public void startCompressor() {
- compressor.start();
- }
-
- public void stopCompressor() {
- compressor.stop();
- }
-
- public void toggleCompressor() {
- if (compressor.enabled())
- compressor.stop();
- else
- compressor.start();
- }
-
}