Make methods to convert DegreesPerSecond to Degrees
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / subsystems / DriveTrain.java
index bb7839069beb25f02f8eeb177450e62534ae2766..af4aa14ed7e2ed6e454c2c5eb5269e8f78481d96 100644 (file)
@@ -37,9 +37,17 @@ 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);