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 3d70d006f9e8c9948879df9b397d4bf219b2fa93..935b430221d76f22ccf566b5f7910dad27ea1ab8 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;
@@ -35,18 +34,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);
@@ -63,8 +50,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