Package frc.robot
Class FieldConstants.LinesVertical
java.lang.Object
frc.robot.FieldConstants.LinesVertical
- Enclosing class:
- FieldConstants
Convenient X positions for important vertical (field-lengthwise) lines.
Vertical lines are represented as X offsets in field coordinates.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doubleAlias for the alliance zone boundary line X.static final doubleField centerline X (half the field length).static final doubleHub center X on the alliance side.static final doubleFar edge of the neutral zone (toward red).static final doubleNear edge of the neutral zone (toward blue).static final doubleOpposing alliance zone boundary line X (near the far wall).static final doubleHub center X on the opposing side.static final doubleStarting line X on the alliance side, derived from the hub/tag system. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
center
public static final double centerField centerline X (half the field length). -
starting
public static final double startingStarting line X on the alliance side, derived from the hub/tag system.Note: This uses the X of tag 26 in the official layout.
-
allianceZone
public static final double allianceZoneAlias for the alliance zone boundary line X. -
hubCenter
public static final double hubCenterHub center X on the alliance side.Computed as tag 26 X plus half the hub width.
-
neutralZoneNear
public static final double neutralZoneNearNear edge of the neutral zone (toward blue). -
neutralZoneFar
public static final double neutralZoneFarFar edge of the neutral zone (toward red). -
oppHubCenter
public static final double oppHubCenterHub center X on the opposing side.Computed as tag 4 X plus half the hub width.
-
oppAllianceZone
public static final double oppAllianceZoneOpposing alliance zone boundary line X (near the far wall).Note: This uses the X of tag 10 in the official layout.
-
-
Constructor Details
-
LinesVertical
public LinesVertical()
-