]> git.taranathan.com Git - FRC2026.git/commitdiff
restored fieldconstants to store stuff like hub location
authormixxlto <maxtan0626@gmail.com>
Sun, 18 Jan 2026 23:20:35 +0000 (15:20 -0800)
committermixxlto <maxtan0626@gmail.com>
Sun, 18 Jan 2026 23:20:35 +0000 (15:20 -0800)
src/main/java/frc/robot/constants/FieldConstants.java [new file with mode: 0644]

diff --git a/src/main/java/frc/robot/constants/FieldConstants.java b/src/main/java/frc/robot/constants/FieldConstants.java
new file mode 100644 (file)
index 0000000..839ec00
--- /dev/null
@@ -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