-
Couldn't load subscription status.
- Fork 1
Testbot Code! #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
BenBerol
wants to merge
6
commits into
frc1418:main
Choose a base branch
from
BenBerol:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 4 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
152c2c1
initial commit
BenBerol e2f0074
Create test bot
BenBerol 567b0cc
Merge remote-tracking branch 'upstream/main'
BenBerol 23f6bcf
Fix README
BenBerol c3cebd9
"Add constants and remove unused code"
BenBerol da9145f
"Removing unused files"
BenBerol File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,162 @@ | ||
| # This gitignore has been specially created by the WPILib team. | ||
| # If you remove items from this file, intellisense might break. | ||
|
|
||
| ### C++ ### | ||
| # Prerequisites | ||
| *.d | ||
|
|
||
| # Compiled Object files | ||
| *.slo | ||
| *.lo | ||
| *.o | ||
| *.obj | ||
|
|
||
| # Precompiled Headers | ||
| *.gch | ||
| *.pch | ||
|
|
||
| # Compiled Dynamic libraries | ||
| *.so | ||
| *.dylib | ||
| *.dll | ||
|
|
||
| # Fortran module files | ||
| *.mod | ||
| *.smod | ||
|
|
||
| # Compiled Static libraries | ||
| *.lai | ||
| *.la | ||
| *.a | ||
| *.lib | ||
|
|
||
| # Executables | ||
| *.exe | ||
| *.out | ||
| *.app | ||
|
|
||
| ### Java ### | ||
| # Compiled class file | ||
| *.class | ||
|
|
||
| # Log file | ||
| *.log | ||
|
|
||
| # BlueJ files | ||
| *.ctxt | ||
|
|
||
| # Mobile Tools for Java (J2ME) | ||
| .mtj.tmp/ | ||
|
|
||
| # Package Files # | ||
| *.jar | ||
| *.war | ||
| *.nar | ||
| *.ear | ||
| *.zip | ||
| *.tar.gz | ||
| *.rar | ||
|
|
||
| # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml | ||
| hs_err_pid* | ||
|
|
||
| ### Linux ### | ||
| *~ | ||
|
|
||
| # temporary files which can be created if a process still has a handle open of a deleted file | ||
| .fuse_hidden* | ||
|
|
||
| # KDE directory preferences | ||
| .directory | ||
|
|
||
| # Linux trash folder which might appear on any partition or disk | ||
| .Trash-* | ||
|
|
||
| # .nfs files are created when an open file is removed but is still being accessed | ||
| .nfs* | ||
|
|
||
| ### macOS ### | ||
| # General | ||
| .DS_Store | ||
| .AppleDouble | ||
| .LSOverride | ||
|
|
||
| # Icon must end with two \r | ||
| Icon | ||
|
|
||
| # Thumbnails | ||
| ._* | ||
|
|
||
| # Files that might appear in the root of a volume | ||
| .DocumentRevisions-V100 | ||
| .fseventsd | ||
| .Spotlight-V100 | ||
| .TemporaryItems | ||
| .Trashes | ||
| .VolumeIcon.icns | ||
| .com.apple.timemachine.donotpresent | ||
|
|
||
| # Directories potentially created on remote AFP share | ||
| .AppleDB | ||
| .AppleDesktop | ||
| Network Trash Folder | ||
| Temporary Items | ||
| .apdisk | ||
|
|
||
| ### VisualStudioCode ### | ||
| .vscode/* | ||
| !.vscode/settings.json | ||
| !.vscode/tasks.json | ||
| !.vscode/launch.json | ||
| !.vscode/extensions.json | ||
|
|
||
| ### Windows ### | ||
| # Windows thumbnail cache files | ||
| Thumbs.db | ||
| ehthumbs.db | ||
| ehthumbs_vista.db | ||
|
|
||
| # Dump file | ||
| *.stackdump | ||
|
|
||
| # Folder config file | ||
| [Dd]esktop.ini | ||
|
|
||
| # Recycle Bin used on file shares | ||
| $RECYCLE.BIN/ | ||
|
|
||
| # Windows Installer files | ||
| *.cab | ||
| *.msi | ||
| *.msix | ||
| *.msm | ||
| *.msp | ||
|
|
||
| # Windows shortcuts | ||
| *.lnk | ||
|
|
||
| ### Gradle ### | ||
| .gradle | ||
| /build/ | ||
|
|
||
| # Ignore Gradle GUI config | ||
| gradle-app.setting | ||
|
|
||
| # Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored) | ||
| !gradle-wrapper.jar | ||
|
|
||
| # Cache of project | ||
| .gradletasknamecache | ||
|
|
||
| # # Work around https://youtrack.jetbrains.com/issue/IDEA-116898 | ||
| # gradle/wrapper/gradle-wrapper.properties | ||
|
|
||
| # # VS Code Specific Java Settings | ||
| # DO NOT REMOVE .classpath and .project | ||
| .classpath | ||
| .project | ||
| .settings/ | ||
| bin/ | ||
|
|
||
| # Simulation GUI and other tools window save file | ||
| *-window.json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| { | ||
| "robotWidth": 0.635, | ||
| "robotLength": 0.64, | ||
| "holonomicMode": true, | ||
| "generateJSON": true, | ||
| "generateCSV": false | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| { | ||
| // Use IntelliSense to learn about possible attributes. | ||
| // Hover to view descriptions of existing attributes. | ||
| // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
| "version": "0.2.0", | ||
| "configurations": [ | ||
|
|
||
| { | ||
| "type": "wpilib", | ||
| "name": "WPILib Desktop Debug", | ||
| "request": "launch", | ||
| "desktop": true, | ||
| }, | ||
| { | ||
| "type": "wpilib", | ||
| "name": "WPILib roboRIO Debug", | ||
| "request": "launch", | ||
| "desktop": false, | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| { | ||
| "java.configuration.updateBuildConfiguration": "automatic", | ||
| "java.server.launchMode": "Standard", | ||
| "files.exclude": { | ||
| "**/.git": true, | ||
| "**/.svn": true, | ||
| "**/.hg": true, | ||
| "**/CVS": true, | ||
| "**/.DS_Store": true, | ||
| "bin/": true, | ||
| "**/.classpath": true, | ||
| "**/.project": true, | ||
| "**/.settings": true, | ||
| "**/.factorypath": true, | ||
| "**/*~": true | ||
| }, | ||
| "java.test.config": [ | ||
| { | ||
| "name": "WPIlibUnitTests", | ||
| "workingDirectory": "${workspaceFolder}/build/jni/release", | ||
| "vmargs": [ "-Djava.library.path=${workspaceFolder}/build/jni/release" ], | ||
| "env": { | ||
| "LD_LIBRARY_PATH": "${workspaceFolder}/build/jni/release" , | ||
| "DYLD_LIBRARY_PATH": "${workspaceFolder}/build/jni/release" | ||
| } | ||
| }, | ||
| ], | ||
| "java.test.defaultConfig": "WPIlibUnitTests" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| { | ||
| "enableCppIntellisense": false, | ||
| "currentLanguage": "java", | ||
| "projectYear": "2023", | ||
| "teamNumber": 1418 | ||
| } |
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| X,Y,Tangent X,Tangent Y,Fixed Theta,Reversed,Name | ||
|
||
| 0.0,-8.01367968,0.001,0.0,true,false, | ||
| 0.0,-6.013679679999999,0.0,0.001,true,false, | ||
| 2.0,-6.013679679999999,0.0,0.001,true,false, | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This isn't needed |
||
| "lengthUnit": "Meter", | ||
| "exportUnit": "Always Meters", | ||
| "maxVelocity": 1.5, | ||
| "maxAcceleration": 0.9, | ||
| "trackWidth": 0.216, | ||
| "gameName": "Charged Up", | ||
| "outputDir": "../src/main/deploy" | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| Copyright (c) 2009-2021 FIRST and other WPILib contributors | ||
| All rights reserved. | ||
|
|
||
| Redistribution and use in source and binary forms, with or without | ||
| modification, are permitted provided that the following conditions are met: | ||
| * Redistributions of source code must retain the above copyright | ||
| notice, this list of conditions and the following disclaimer. | ||
| * Redistributions in binary form must reproduce the above copyright | ||
| notice, this list of conditions and the following disclaimer in the | ||
| documentation and/or other materials provided with the distribution. | ||
| * Neither the name of FIRST, WPILib, nor the names of other WPILib | ||
| contributors may be used to endorse or promote products derived from | ||
| this software without specific prior written permission. | ||
|
|
||
| THIS SOFTWARE IS PROVIDED BY FIRST AND OTHER WPILIB CONTRIBUTORS "AS IS" AND | ||
| ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
| WARRANTIES OF MERCHANTABILITY NONINFRINGEMENT AND FITNESS FOR A PARTICULAR | ||
| PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL FIRST OR CONTRIBUTORS BE LIABLE FOR | ||
| ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | ||
| (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
| LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | ||
| ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
| (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
| SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,99 @@ | ||
| plugins { | ||
| id "java" | ||
| id "edu.wpi.first.GradleRIO" version "2023.2.1" | ||
| } | ||
|
|
||
| sourceCompatibility = JavaVersion.VERSION_11 | ||
| targetCompatibility = JavaVersion.VERSION_11 | ||
|
|
||
| def ROBOT_MAIN_CLASS = "frc.robot.Main" | ||
|
|
||
| // Define my targets (RoboRIO) and artifacts (deployable files) | ||
| // This is added by GradleRIO's backing project DeployUtils. | ||
| deploy { | ||
| targets { | ||
| roborio(getTargetTypeClass('RoboRIO')) { | ||
| // Team number is loaded either from the .wpilib/wpilib_preferences.json | ||
| // or from command line. If not found an exception will be thrown. | ||
| // You can use getTeamOrDefault(team) instead of getTeamNumber if you | ||
| // want to store a team number in this file. | ||
| team = project.frc.getTeamNumber() | ||
| debug = project.frc.getDebugOrDefault(false) | ||
|
|
||
| artifacts { | ||
| // First part is artifact name, 2nd is artifact type | ||
| // getTargetTypeClass is a shortcut to get the class type using a string | ||
|
|
||
| frcJava(getArtifactTypeClass('FRCJavaArtifact')) { | ||
| } | ||
|
|
||
| // Static files artifact | ||
| frcStaticFileDeploy(getArtifactTypeClass('FileTreeArtifact')) { | ||
| files = project.fileTree('src/main/deploy') | ||
| directory = '/home/lvuser/deploy' | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
|
|
||
| def deployArtifact = deploy.targets.roborio.artifacts.frcJava | ||
|
|
||
| // Set to true to use debug for JNI. | ||
| wpi.java.debugJni = false | ||
|
|
||
| // Set this to true to enable desktop support. | ||
| def includeDesktopSupport = true | ||
|
|
||
| // Defining my dependencies. In this case, WPILib (+ friends), and vendor libraries. | ||
| // Also defines JUnit 5. | ||
| dependencies { | ||
| implementation wpi.java.deps.wpilib() | ||
| implementation wpi.java.vendor.java() | ||
|
|
||
| roborioDebug wpi.java.deps.wpilibJniDebug(wpi.platforms.roborio) | ||
| roborioDebug wpi.java.vendor.jniDebug(wpi.platforms.roborio) | ||
|
|
||
| roborioRelease wpi.java.deps.wpilibJniRelease(wpi.platforms.roborio) | ||
| roborioRelease wpi.java.vendor.jniRelease(wpi.platforms.roborio) | ||
|
|
||
| nativeDebug wpi.java.deps.wpilibJniDebug(wpi.platforms.desktop) | ||
| nativeDebug wpi.java.vendor.jniDebug(wpi.platforms.desktop) | ||
| simulationDebug wpi.sim.enableDebug() | ||
|
|
||
| nativeRelease wpi.java.deps.wpilibJniRelease(wpi.platforms.desktop) | ||
| nativeRelease wpi.java.vendor.jniRelease(wpi.platforms.desktop) | ||
| simulationRelease wpi.sim.enableRelease() | ||
|
|
||
| testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2' | ||
| testImplementation 'org.junit.jupiter:junit-jupiter-params:5.8.2' | ||
| testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2' | ||
| } | ||
|
|
||
| test { | ||
| useJUnitPlatform() | ||
| systemProperty 'junit.jupiter.extensions.autodetection.enabled', 'true' | ||
| } | ||
|
|
||
| // Simulation configuration (e.g. environment variables). | ||
| wpi.sim.addGui().defaultEnabled = true | ||
| wpi.sim.addDriverstation() | ||
|
|
||
| // Setting up my Jar File. In this case, adding all libraries into the main jar ('fat jar') | ||
| // in order to make them all available at runtime. Also adding the manifest so WPILib | ||
| // knows where to look for our Robot Class. | ||
| jar { | ||
| from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } } | ||
| manifest edu.wpi.first.gradlerio.GradleRIOPlugin.javaManifest(ROBOT_MAIN_CLASS) | ||
| duplicatesStrategy = DuplicatesStrategy.INCLUDE | ||
| } | ||
|
|
||
| // Configure jar and deploy tasks | ||
| deployArtifact.jarTask = jar | ||
| wpi.java.configureExecutableTasks(jar) | ||
| wpi.java.configureTestTasks(test) | ||
|
|
||
| // Configure string concat to always inline compile | ||
| tasks.withType(JavaCompile) { | ||
| options.compilerArgs.add '-XDstringConcat=inline' | ||
| } |
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| distributionBase=GRADLE_USER_HOME | ||
| distributionPath=permwrapper/dists | ||
| distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip | ||
| zipStoreBase=GRADLE_USER_HOME | ||
| zipStorePath=permwrapper/dists |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file isn't needed