add PIDController
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / subsystems / DriveTrain.java
index b4fcd636777f3fccf353084cca32c4d113537045..364340e106f2901ab65720f71d0f402df0aa950d 100644 (file)
@@ -29,9 +29,9 @@ public class DriveTrain extends Subsystem {
 
     // ENCODERS
     leftEncoder = new Encoder(Constants.DriveTrain.ENCODER_LEFT_A,
-        Constants.DriveTrain.ENCODER_LEFT_B);
+        Constants.DriveTrain.ENCODER_LEFT_B, false, Encoder.EncodingType.k4X);
     rightEncoder = new Encoder(Constants.DriveTrain.ENCODER_RIGHT_A,
-        Constants.DriveTrain.ENCODER_RIGHT_B);
+        Constants.DriveTrain.ENCODER_RIGHT_B, false, Encoder.EncodingType.k4X);
 
     leftEncoder.setDistancePerPulse(INCHES_PER_PULSE);
     rightEncoder.setDistancePerPulse(INCHES_PER_PULSE);
@@ -80,29 +80,13 @@ public class DriveTrain extends Subsystem {
     return frontLeft.get();
   }
 
-  public CANTalon getFrontLeft() {
-    return frontLeft;
-  }
-
-  public CANTalon getFrontRight() {
-    return frontRight;
-  }
-
-  public CANTalon getRearLeft() {
-    return rearLeft;
-  }
-
-  public CANTalon getRearRight() {
-    return rearRight;
-  }
-
   // ENCODER METHODS
 
-  public double getLeftEncoder() {
+  public double getLeftEncoderDistance() {
     return leftEncoder.getDistance();
   }
 
-  public double getRightEncoder() {
+  public double getRightEncoderDistance() {
     return rightEncoder.getDistance();
   }