Package frc.robot

Class Constants

java.lang.Object
frc.robot.Constants

public final class Constants extends Object
Defines constants for the robot's physical dimensions, game field layout, and AdvantageKit operating mode.
  • Field Details

    • SIM_MODE

      public static final Constants.Mode SIM_MODE
      The mode to use when running in simulation. Change to Constants.Mode.REPLAY to read from a log file instead of simulating physics.
    • CURRENT_MODE

      public static final Constants.Mode CURRENT_MODE
      The currently active operating mode based on hardware detection.
    • HUB_POSITION

      public static final Translation2d HUB_POSITION
      The location of the center of the field hub mechanism.
    • LOBBING_TARGET_LEFT_CENTER

      public static final Translation2d LOBBING_TARGET_LEFT_CENTER
      Center of the left lobbing target line (blue alliance coordinates).
    • LOBBING_TARGET_RIGHT_CENTER

      public static final Translation2d LOBBING_TARGET_RIGHT_CENTER
      Center of the right lobbing target line (blue alliance coordinates).
    • LOBBING_TARGET_HALF_LENGTH

      public static final Distance LOBBING_TARGET_HALF_LENGTH
      Half-length of each lobbing target line segment (0.5m in each direction from center).
    • SHOOTING_ZONE

      public static final Rectangle2d SHOOTING_ZONE
      The area on the field where the robot is permitted to shoot game pieces.
    • LOBBING_ZONE

      public static final Rectangle2d LOBBING_ZONE
      The area on the field where the robot is permitted to lob game pieces.
  • Constructor Details

    • Constants

      public Constants()