From f0e4a58a657ab60bde9439385865f149c276e9fb Mon Sep 17 00:00:00 2001 From: mixxlto Date: Sun, 18 Jan 2026 15:20:35 -0800 Subject: [PATCH] restored fieldconstants to store stuff like hub location --- .../java/frc/robot/constants/FieldConstants.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/main/java/frc/robot/constants/FieldConstants.java diff --git a/src/main/java/frc/robot/constants/FieldConstants.java b/src/main/java/frc/robot/constants/FieldConstants.java new file mode 100644 index 0000000..839ec00 --- /dev/null +++ b/src/main/java/frc/robot/constants/FieldConstants.java @@ -0,0 +1,15 @@ +package frc.robot.constants; + +import edu.wpi.first.math.geometry.Translation3d; +import edu.wpi.first.math.util.Units; + +public class FieldConstants { + /** Width of the field [meters] */ + public static final double FIELD_LENGTH = Units.inchesToMeters(57*12 + 6+7.0/8.0); + /** Height of the field [meters] */ + public static final double FIELD_WIDTH = Units.inchesToMeters(26*12 + 5); + + /** Location of hub target */ + public static final Translation3d HUB_TRANSLATION3D = new Translation3d(Units.inchesToMeters(156.8), 4.035, Units.inchesToMeters(72)); + +} \ No newline at end of file -- 2.39.5