Package frc.robot
Class Constants
java.lang.Object
frc.robot.Constants
Defines constants for the robot's physical dimensions, game field layout, and AdvantageKit
operating mode.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDefines the three possible runtime modes for AdvantageKit. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Constants.ModeThe currently active operating mode based on hardware detection.static final Translation2dThe location of the center of the field hub mechanism.static final DistanceHalf-length of each lobbing target line segment (0.5m in each direction from center).static final Translation2dCenter of the left lobbing target line (blue alliance coordinates).static final Translation2dCenter of the right lobbing target line (blue alliance coordinates).static final Rectangle2dThe area on the field where the robot is permitted to lob game pieces.static final Rectangle2dThe area on the field where the robot is permitted to shoot game pieces.static final Constants.ModeThe mode to use when running in simulation. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
SIM_MODE
The mode to use when running in simulation. Change toConstants.Mode.REPLAYto read from a log file instead of simulating physics. -
CURRENT_MODE
The currently active operating mode based on hardware detection. -
HUB_POSITION
The location of the center of the field hub mechanism. -
LOBBING_TARGET_LEFT_CENTER
Center of the left lobbing target line (blue alliance coordinates). -
LOBBING_TARGET_RIGHT_CENTER
Center of the right lobbing target line (blue alliance coordinates). -
LOBBING_TARGET_HALF_LENGTH
Half-length of each lobbing target line segment (0.5m in each direction from center). -
SHOOTING_ZONE
The area on the field where the robot is permitted to shoot game pieces. -
LOBBING_ZONE
The area on the field where the robot is permitted to lob game pieces.
-
-
Constructor Details
-
Constants
public Constants()
-