X-Git-Url: http://challenge-bot.com/repos/?a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2FConstants.java;h=f5241d805d609dc306402aa3141affb0d323a415;hb=f11e620060e9ff7062b4409bbc4f14bb5bcf2e9d;hp=fc2c712491b9fc3a3e27f5092ff2b901c07351ea;hpb=72fc3c9bd8099194cc4b2c8a747ed9f2be06f1c8;p=3501%2Fstronghold-2016 diff --git a/src/org/usfirst/frc/team3501/robot/Constants.java b/src/org/usfirst/frc/team3501/robot/Constants.java index fc2c7124..f5241d80 100644 --- a/src/org/usfirst/frc/team3501/robot/Constants.java +++ b/src/org/usfirst/frc/team3501/robot/Constants.java @@ -74,6 +74,7 @@ public class Constants { public static boolean inverted = false; + public static final double PASS_DEFENSE_TIMEOUT = 10; // find this } public static class Scaler { @@ -123,6 +124,25 @@ public class Constants { public static class DeadReckoning { public static final double DEFAULT_SPEED = 0.5; + public static boolean isUsingTimeToPassDefense; + + // dead reckoning time and speed constants for driving through defenses + public static double passRockWallTime = 0; + public static double passRockWallSpeed = 0; + public static double passRockWallDistance = 0; + public static double passLowBarTime = 0; + public static double passLowBarSpeed = 0; + public static double passLowBarDistance = 0; + public static double passMoatTime = 0; + public static double passMoatSpeed = 0; + public static double passMoatDistance = 0; + public static double passRampartTime = 0; + public static double passRampartSpeed = 0; + public static double passRampartDistance = 0; + public static double passRoughTerrainTime = 0; + public static double passRoughTerrainSpeed = 0; + public static double passRoughTerrainDistance = 0; + } public static class IntakeArm {