Package frc.robot

Class FieldConstants.Rectangles

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

public static class FieldConstants.Rectangles extends Object
Defines commonly used rectangular field regions.

All rectangles are defined in field coordinates using Pose2d for their center position and are intended to represent alliance zones, climber areas, droppers, and the neutral zone.

All dimensions are expressed in meters unless otherwise specified.

  • Field Details

    • blueAlliance

      public static final Rectangle blueAlliance
      The Blue Alliance zone.

      This rectangle spans the full field width and extends from the blue alliance wall to the hub center line.

    • blueAllianceClimber

      public static final Rectangle blueAllianceClimber
      The Blue Alliance climber area.

      Located near the blue alliance wall and centered horizontally on the field. Dimensions are based on official field measurements.

    • blueDropper

      public static final Rectangle blueDropper
      The Blue Alliance dropper area.

      Positioned adjacent to the hub on the blue alliance side, offset slightly from the hub edge.

    • neutralZone

      public static final Rectangle neutralZone
      The neutral zone.

      This rectangle represents the central field area between alliance zones, bounded vertically by the neutral zone lines and horizontally by the open trench boundaries.

    • redDropper

      public static final Rectangle redDropper
      The Red Alliance dropper area.

      Mirrors the blue dropper area, positioned adjacent to the hub on the red alliance side.

    • redAlliance

      public static final Rectangle redAlliance
      The Red Alliance zone.

      This rectangle spans the full field width and extends from the red alliance wall to the hub center line.

    • redAllianceClimber

      public static final Rectangle redAllianceClimber
      The Red Alliance climber area.

      Located near the red alliance wall and centered horizontally on the field. Dimensions mirror those of the blue alliance climber.

  • Constructor Details

    • Rectangles

      public Rectangles()