Package frc.robot

Class FieldConstants.LinesVertical

java.lang.Object
frc.robot.FieldConstants.LinesVertical
Enclosing class:
FieldConstants

public static class FieldConstants.LinesVertical extends Object
Convenient X positions for important vertical (field-lengthwise) lines.

Vertical lines are represented as X offsets in field coordinates.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final double
    Alias for the alliance zone boundary line X.
    static final double
    Field centerline X (half the field length).
    static final double
    Hub center X on the alliance side.
    static final double
    Far edge of the neutral zone (toward red).
    static final double
    Near edge of the neutral zone (toward blue).
    static final double
    Opposing alliance zone boundary line X (near the far wall).
    static final double
    Hub center X on the opposing side.
    static final double
    Starting line X on the alliance side, derived from the hub/tag system.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • center

      public static final double center
      Field centerline X (half the field length).
    • starting

      public static final double starting
      Starting 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 allianceZone
      Alias for the alliance zone boundary line X.
    • hubCenter

      public static final double hubCenter
      Hub center X on the alliance side.

      Computed as tag 26 X plus half the hub width.

    • neutralZoneNear

      public static final double neutralZoneNear
      Near edge of the neutral zone (toward blue).
    • neutralZoneFar

      public static final double neutralZoneFar
      Far edge of the neutral zone (toward red).
    • oppHubCenter

      public static final double oppHubCenter
      Hub center X on the opposing side.

      Computed as tag 4 X plus half the hub width.

    • oppAllianceZone

      public static final double oppAllianceZone
      Opposing 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()