Package frc.reefscape
Class Field
java.lang.Object
frc.reefscape.Field
Contains various field dimensions and useful reference points. All units are in meters and poses
have a blue alliance origin.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
static class
static class
static enum
static class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic double
static edu.wpi.first.math.geometry.Pose2d
static double
static double
static double
static double
static double
static boolean
isBlue()
Returnstrue
if the robot is on the blue alliance.static boolean
isRed()
Returnstrue
if the robot is on the red alliance.
-
Field Details
-
fieldLength
public static final double fieldLength -
fieldWidth
public static final double fieldWidth -
startingLineX
public static final double startingLineX -
red
-
blue
-
-
Constructor Details
-
Field
public Field()
-
-
Method Details
-
isBlue
public static boolean isBlue()Returnstrue
if the robot is on the blue alliance. -
isRed
public static boolean isRed()Returnstrue
if the robot is on the red alliance. -
getFieldLength
public static double getFieldLength() -
getHalfLength
public static double getHalfLength() -
getFieldWidth
public static double getFieldWidth() -
getHalfWidth
public static double getHalfWidth() -
getCenterField
public static edu.wpi.first.math.geometry.Pose2d getCenterField() -
getStartingLineX
public static double getStartingLineX() -
getAprilTagWidth
public static double getAprilTagWidth()
-