Move all constants in DeadReckoning to Auton class because it makes more sense
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / subsystems / DriveTrain.java
index 96f1d1150fd5d87a2d5e5531f8515fcf10302e4f..9852848e1c1a49fac411fe0ae876f1ffe302d51b 100644 (file)
@@ -227,10 +227,16 @@ public class DriveTrain extends PIDSubsystem {
   }
 
   /*
-   * Checks the drive mode
+   * Checks the drive mode <<<<<<< 9728080f491e9fb09795494349dba1297f447c0f
    *
    * @return the current state of the robot in each state Average distance from
    * both sides of tank drive for Encoder Mode Angle from the gyro in GYRO_MODE
+   * =======
+   *
+   * @return the current state of the robot in each state Average distance from
+   * both sides of tank drive for Encoder Mode Angle from the gyro in GYRO_MODE
+   * >>>>>>> Move all constants in DeadReckoning to Auton class because it makes
+   * more sense
    */
   private double sensorFeedback() {
     if (DRIVE_MODE == Constants.DriveTrain.ENCODER_MODE)
@@ -360,4 +366,8 @@ public class DriveTrain extends PIDSubsystem {
     leftGearPiston.set(gear);
     rightGearPiston.set(gear);
   }
+
+  public void toggleTimeDeadReckoning() {
+    Constants.Auton.isUsingTimeToPassDefense = !Constants.Auton.isUsingTimeToPassDefense;
+  }
 }