From: Arnav495 Date: Sat, 17 Jan 2026 22:18:19 +0000 (-0800) Subject: Add incorrectly removed/changed files back. X-Git-Url: https://git.taranathan.com/?a=commitdiff_plain;h=4dc442b5c669a4918aed479bc5f219b4615d235f;p=FRC2026.git Add incorrectly removed/changed files back. --- diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..286213b --- /dev/null +++ b/.gitattributes @@ -0,0 +1,4 @@ +*.gradle text eol=lf +*.java text eol=lf +*.md text eol=lf +*.xml text eol=lf \ No newline at end of file diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..80743dc --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,2 @@ +# Make the pull reviewers code owners for every file, they will get requested for review when a PR is made +* @Saara21 @MaxwellTTan20 @Arnav814 @ericoj100 @mm-MS13-Mehaan diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..c89f33b --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,21 @@ + + +## Overview + +This PR will... + + +## Documentation + + + +## Tests Ran + + + +## Additional Notes + \ No newline at end of file diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..faa5948 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,42 @@ +# This is a basic workflow to build robot code. credit: WPI + +name: CI + +# Controls when the action will run. Triggers the workflow on push or pull request +# events but only for the main branch. +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # This grabs the WPILib docker container + container: wpilib/roborio-cross-ubuntu:2023-22.04 + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v3 + + # Declares the repository safe and not under dubious ownership. + - name: Add repository to git safe directories + run: git config --global --add safe.directory $GITHUB_WORKSPACE + + # Grant execute permission for gradlew + - name: Grant execute permission for gradlew + run: chmod +x gradlew + + # Call gversion to make the version file + - name: Create BuildData.java + run: ./gradlew createVersionFile + + # Runs a single command using the runners shell + - name: Compile and run tests on robot code + run: ./gradlew build diff --git a/.gitignore b/.gitignore index 34cbaac..88b4e69 100644 --- a/.gitignore +++ b/.gitignore @@ -185,3 +185,7 @@ compile_commands.json # Eclipse generated file for annotation processors .factorypath + +# File that has git and version data +src/main/java/frc/robot/util/BuildData.java + diff --git a/.pathplanner/settings.json b/.pathplanner/settings.json new file mode 100644 index 0000000..0c64c43 --- /dev/null +++ b/.pathplanner/settings.json @@ -0,0 +1,15 @@ +{ + "robotWidth": 0.76, + "robotLength": 0.91, + "holonomicMode": true, + "pathFolders": [ + "Final Stuff", + "Stuff" + ], + "autoFolders": [], + "defaultMaxVel": 3.0, + "defaultMaxAccel": 3.0, + "defaultMaxAngVel": 540.0, + "defaultMaxAngAccel": 720.0, + "maxModuleSpeed": 4.5 +} \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..f478cf3 --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +# FRC2026 + +[![CI](https://github.com/iron-claw-972/FRC2026/actions/workflows/main.yml/badge.svg)](https://github.com/iron-claw-972/FRC2026/actions/workflows/main.yml) + +Code for the 2025-2026 FRC Season. diff --git a/build.gradle b/build.gradle index 1f516b7..cd7acf9 100644 --- a/build.gradle +++ b/build.gradle @@ -28,6 +28,14 @@ deploy { // getTargetTypeClass is a shortcut to get the class type using a string frcJava(getArtifactTypeClass('FRCJavaArtifact')) { + jvmArgs.add("-Dcom.sun.management.jmxremote=true") + jvmArgs.add("-Dcom.sun.management.jmxremote.port=1198") + jvmArgs.add("-Dcom.sun.management.jmxremote.local.only=false") + jvmArgs.add("-Dcom.sun.management.jmxremote.ssl=false") + jvmArgs.add("-Dcom.sun.management.jmxremote.authenticate=false") + jvmArgs.add("-XX:+HeapDumpOnOutOfMemoryError") + jvmArgs.add("-XX:HeapDumpPath=/home/lvuser/frc-usercode.hprof") + jvmArgs.add("-Djava.rmi.server.hostname=10.9.72.2") } // Static files artifact @@ -122,5 +130,6 @@ wpi.java.configureTestTasks(test) // Configure string concat to always inline compile tasks.withType(JavaCompile) { + options.encoding = 'UTF-8' // prevent breaks in CI options.compilerArgs.add '-XDstringConcat=inline' } diff --git a/src/main/java/frc/robot/util/BuildData.java b/src/main/java/frc/robot/util/BuildData.java deleted file mode 100644 index d96255b..0000000 --- a/src/main/java/frc/robot/util/BuildData.java +++ /dev/null @@ -1,19 +0,0 @@ -package frc.robot.util; - -/** - * Automatically generated file containing build version information. - */ -public final class BuildData { - public static final String MAVEN_GROUP = ""; - public static final String MAVEN_NAME = "FRC2026"; - public static final String VERSION = "unspecified"; - public static final int GIT_REVISION = 16; - public static final String GIT_SHA = "63d00c4a0f83516c34001c72932a777d4ecffe70"; - public static final String GIT_DATE = "2026-01-17T00:05:23Z"; - public static final String GIT_BRANCH = "2026-migration"; - public static final String BUILD_DATE = "2026-01-17T00:51:05Z"; - public static final long BUILD_UNIX_TIME = 1768611065393L; - public static final int DIRTY = 1; - - private BuildData(){} -}