X-Git-Url: http://challenge-bot.com/repos/?a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2FConstants.java;h=08dda700f3b64710aa3d141a3735884be595d27c;hb=c688e9da1214ed9257214a0b265a1c1b7eeb1506;hp=2d3cd43d6212cd6aab39d692699d78db05cf2646;hpb=9728080f491e9fb09795494349dba1297f447c0f;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 2d3cd43d..08dda700 100644 --- a/src/org/usfirst/frc/team3501/robot/Constants.java +++ b/src/org/usfirst/frc/team3501/robot/Constants.java @@ -124,29 +124,6 @@ public class Constants { } } - public static class DeadReckoning { - public static final double DEFAULT_SPEED = 0.5; - public static boolean isUsingTimeToPassDefense = true; - - // 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 { public static final int ROLLER_PORT = 0; public static final int ARM_PORT = 1; @@ -249,6 +226,29 @@ public class Constants { public static final double POS5_TURN1_TIME = 60; public static final double POS5_TURN_MAXSPEED = 0.5; public static final double POS5_DIST2_TIME = 0; + + // Passing Defenses Constants + + public static final double DEFAULT_SPEED = 0.5; + public static final boolean IS_USING_TIME = true; + + // dead reckoning time and speed constants for driving through defenses + // TODO: find the times it takes to pass each defense + public static final double PASS_ROCK_WALL_TIME = 0; + public static final double PASS_ROCK_WALL_SPEED = 0; + public static final double PASS_ROCK_WALL_DIST = 0; + public static final double PASS_LOW_BAR_TIME = 0; + public static final double PASS_LOW_BAR_SPEED = 0; + public static final double PASS_LOW_BAR_DIST = 0; + public static final double PASS_MOAT_TIME = 0; + public static final double PASS_MOAT_SPEED = 0; + public static final double PASS_MOAT_DIST = 0; + public static final double PASS_RAMPART_TIME = 0; + public static final double PASS_RAMPART_SPEED = 0; + public static final double PASS_RAMPART_DIST = 0; + public static final double PASS_ROUGH_TERRAIN_TIME = 0; + public static final double PASS_ROUGH_TERRAIN_SPEED = 0; + public static final double PASS_ROUGH_TERRAIN_DIST = 0; } public enum Direction {