Switch all methods of gyro to Robot class so DriveTrain does not have to be depended...
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / subsystems / DriveTrain.java
index af4aa14ed7e2ed6e454c2c5eb5269e8f78481d96..6ce925921dd8d2834cacc3ccff75c99675fe43f1 100644 (file)
@@ -1,7 +1,6 @@
 package org.usfirst.frc.team3501.robot.subsystems;
 
 import org.usfirst.frc.team3501.robot.Constants;
-import org.usfirst.frc.team3501.robot.FirebotGyro;
 import org.usfirst.frc.team3501.robot.Lidar;
 
 import edu.wpi.first.wpilibj.AnalogInput;
@@ -36,18 +35,6 @@ public class DriveTrain extends Subsystem {
 
   public AnalogInput channel;
 
-  // Gyro stuff
-  private final static double NANOSECONDS_PER_SECOND = 1000000000;
-  short rawValue;
-  public FirebotGyro gyro;
-
-  double initialSpeedNanoseconds;
-  double finalSpeedNanoseconds;
-  double initialSpeedSeconds;
-  double finalSpeedSeconds;
-  double deltaSpeed;
-  double degrees;
-
   public DriveTrain() {
     frontLeft = new CANTalon(Constants.DriveTrain.FRONT_LEFT);
     frontRight = new CANTalon(Constants.DriveTrain.FRONT_RIGHT);
@@ -66,8 +53,6 @@ public class DriveTrain extends Subsystem {
     leftEncoder.setDistancePerPulse(INCHES_PER_PULSE);
     rightEncoder.setDistancePerPulse(INCHES_PER_PULSE);
 
-    gyro = new FirebotGyro(I2C.Port.kOnboard, (byte) 0x68);
-    gyro.initialize();
   }
 
   @Override