Skip to content

Commit 62216d2

Browse files
committed
Initial code
1 parent c12dad0 commit 62216d2

File tree

151 files changed

+1192
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

151 files changed

+1192
-0
lines changed

.classpath

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="src" output="bin/main" path="src/main/java">
4+
<attributes>
5+
<attribute name="gradle_scope" value="main"/>
6+
<attribute name="gradle_used_by_scope" value="main,test"/>
7+
</attributes>
8+
</classpathentry>
9+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11/"/>
10+
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
11+
<classpathentry kind="output" path="bin/default"/>
12+
</classpath>
1 Byte
Binary file not shown.
17 Bytes
Binary file not shown.

.gradle/5.0/fileHashes/fileHashes.bin

20.7 KB
Binary file not shown.
17 Bytes
Binary file not shown.
18.3 KB
Binary file not shown.

.gradle/5.0/gc.properties

Whitespace-only changes.
161 KB
Binary file not shown.
84.2 KB
Binary file not shown.
17 Bytes
Binary file not shown.
19 KB
Binary file not shown.
46.2 KB
Binary file not shown.
17 Bytes
Binary file not shown.
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#Sun Apr 07 11:59:34 CDT 2019
2+
gradle.version=5.0
18.4 KB
Binary file not shown.

.gradle/vcs-1/gc.properties

Whitespace-only changes.

.project

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>FrisbeeBot</name>
4+
<comment>Project FrisbeeBot created by Buildship.</comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
</buildSpec>
19+
<natures>
20+
<nature>org.eclipse.jdt.core.javanature</nature>
21+
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
22+
</natures>
23+
</projectDescription>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
connection.project.dir=
2+
eclipse.preferences.version=1

.vscode/launch.json

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
8+
{
9+
"type": "wpilib",
10+
"name": "WPILib Desktop Debug",
11+
"request": "launch",
12+
"desktop": true,
13+
},
14+
{
15+
"type": "wpilib",
16+
"name": "WPILib roboRIO Debug",
17+
"request": "launch",
18+
"desktop": false,
19+
}
20+
]
21+
}

.vscode/settings.json

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"java.configuration.updateBuildConfiguration": "automatic",
3+
"files.exclude": {
4+
"**/.git": true,
5+
"**/.svn": true,
6+
"**/.hg": true,
7+
"**/CVS": true,
8+
"**/.DS_Store": true,
9+
"bin/": true,
10+
".classpath": true,
11+
".project": true,
12+
"**/.classpath": true,
13+
"**/.project": true,
14+
"**/.settings": true,
15+
"**/.factorypath": true
16+
}
17+
}
+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"enableCppIntellisense": false,
3+
"currentLanguage": "java",
4+
"projectYear": "2019",
5+
"teamNumber": 3883
6+
}

.wpilib/wpilib_preferences.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"enableCppIntellisense": false,
3+
"currentLanguage": "java",
4+
"projectYear": "2019",
5+
"teamNumber": 3883
6+
}

build.gradle

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
plugins {
2+
id "java"
3+
id "edu.wpi.first.GradleRIO" version "2019.4.1"
4+
}
5+
6+
sourceCompatibility = JavaVersion.VERSION_11
7+
targetCompatibility = JavaVersion.VERSION_11
8+
9+
def ROBOT_MAIN_CLASS = "frc.robot.Main"
10+
11+
// Define my targets (RoboRIO) and artifacts (deployable files)
12+
// This is added by GradleRIO's backing project EmbeddedTools.
13+
deploy {
14+
targets {
15+
roboRIO("roborio") {
16+
// Team number is loaded either from the .wpilib/wpilib_preferences.json
17+
// or from command line. If not found an exception will be thrown.
18+
// You can use getTeamOrDefault(team) instead of getTeamNumber if you
19+
// want to store a team number in this file.
20+
team = frc.getTeamNumber()
21+
}
22+
}
23+
artifacts {
24+
frcJavaArtifact('frcJava') {
25+
targets << "roborio"
26+
// Debug can be overridden by command line, for use with VSCode
27+
debug = frc.getDebugOrDefault(false)
28+
}
29+
// Built in artifact to deploy arbitrary files to the roboRIO.
30+
fileTreeArtifact('frcStaticFileDeploy') {
31+
// The directory below is the local directory to deploy
32+
files = fileTree(dir: 'src/main/deploy')
33+
// Deploy to RoboRIO target, into /home/lvuser/deploy
34+
targets << "roborio"
35+
directory = '/home/lvuser/deploy'
36+
}
37+
}
38+
}
39+
40+
// Set this to true to enable desktop support.
41+
def includeDesktopSupport = false
42+
43+
// Maven central needed for JUnit
44+
repositories {
45+
mavenCentral()
46+
}
47+
48+
// Defining my dependencies. In this case, WPILib (+ friends), and vendor libraries.
49+
// Also defines JUnit 4.
50+
dependencies {
51+
compile wpi.deps.wpilib()
52+
compile wpi.deps.vendor.java()
53+
nativeZip wpi.deps.vendor.jni(wpi.platforms.roborio)
54+
nativeDesktopZip wpi.deps.vendor.jni(wpi.platforms.desktop)
55+
testCompile 'junit:junit:4.12'
56+
}
57+
58+
// Setting up my Jar File. In this case, adding all libraries into the main jar ('fat jar')
59+
// in order to make them all available at runtime. Also adding the manifest so WPILib
60+
// knows where to look for our Robot Class.
61+
jar {
62+
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
63+
manifest edu.wpi.first.gradlerio.GradleRIOPlugin.javaManifest(ROBOT_MAIN_CLASS)
64+
}

build/debug/debuginfo.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[
2+
{
3+
"artifact": "frcJava (in project FrisbeeBot)",
4+
"target": "roborio",
5+
"debugfile": "frcJava_roborio.debugconfig",
6+
"project": "FrisbeeBot",
7+
"language": "java"
8+
}
9+
]
+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"target": "10.38.83.87:8349",
3+
"ipAddress": "10.38.83.87",
4+
"port": 8349
5+
}
+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[
2+
{
3+
"artifact": "frcJava (in project FrisbeeBot)",
4+
"target": "roborio",
5+
"debugfile": "frcJava_roborio.debugconfig",
6+
"project": "FrisbeeBot",
7+
"language": "java"
8+
}
9+
]

build/tmp/jar/MANIFEST.MF

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Manifest-Version: 1.0
2+
Main-Class: frc.robot.Main
3+

0 commit comments

Comments
 (0)