Skip to content
This repository was archived by the owner on Nov 2, 2023. It is now read-only.

Commit 2a7dc43

Browse files
committed
Upload project 1 VS Code
1 parent 8064c2b commit 2a7dc43

21 files changed

+543
-51
lines changed

FRC_Project_01/FrcProject_01.zip

59.2 KB
Binary file not shown.
+10-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
12
<classpath>
2-
<classpathentry kind="src" path="src"/>
3-
<classpathentry kind="var" path="wpilib" sourcepath="wpilib.sources"/>
4-
<classpathentry kind="var" path="networktables" sourcepath="networktables.sources"/>
5-
<classpathentry kind="var" path="opencv" sourcepath="opencv.sources"/>
6-
<classpathentry kind="var" path="cscore" sourcepath="cscore.sources"/>
7-
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
8-
<classpathentry kind="output" path="bin"/>
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-1.8/"/>
10+
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
11+
<classpathentry kind="output" path="bin/default"/>
912
</classpath>
+160
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,160 @@
1+
# Created by https://www.gitignore.io/api/c++,java,linux,macos,gradle,windows,visualstudiocode
2+
3+
### C++ ###
4+
# Prerequisites
5+
*.d
6+
7+
# Compiled Object files
8+
*.slo
9+
*.lo
10+
*.o
11+
*.obj
12+
13+
# Precompiled Headers
14+
*.gch
15+
*.pch
16+
17+
# Compiled Dynamic libraries
18+
*.so
19+
*.dylib
20+
*.dll
21+
22+
# Fortran module files
23+
*.mod
24+
*.smod
25+
26+
# Compiled Static libraries
27+
*.lai
28+
*.la
29+
*.a
30+
*.lib
31+
32+
# Executables
33+
*.exe
34+
*.out
35+
*.app
36+
37+
### Java ###
38+
# Compiled class file
39+
*.class
40+
41+
# Log file
42+
*.log
43+
44+
# BlueJ files
45+
*.ctxt
46+
47+
# Mobile Tools for Java (J2ME)
48+
.mtj.tmp/
49+
50+
# Package Files #
51+
*.jar
52+
*.war
53+
*.nar
54+
*.ear
55+
*.zip
56+
*.tar.gz
57+
*.rar
58+
59+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
60+
hs_err_pid*
61+
62+
### Linux ###
63+
*~
64+
65+
# temporary files which can be created if a process still has a handle open of a deleted file
66+
.fuse_hidden*
67+
68+
# KDE directory preferences
69+
.directory
70+
71+
# Linux trash folder which might appear on any partition or disk
72+
.Trash-*
73+
74+
# .nfs files are created when an open file is removed but is still being accessed
75+
.nfs*
76+
77+
### macOS ###
78+
# General
79+
.DS_Store
80+
.AppleDouble
81+
.LSOverride
82+
83+
# Icon must end with two \r
84+
Icon
85+
86+
# Thumbnails
87+
._*
88+
89+
# Files that might appear in the root of a volume
90+
.DocumentRevisions-V100
91+
.fseventsd
92+
.Spotlight-V100
93+
.TemporaryItems
94+
.Trashes
95+
.VolumeIcon.icns
96+
.com.apple.timemachine.donotpresent
97+
98+
# Directories potentially created on remote AFP share
99+
.AppleDB
100+
.AppleDesktop
101+
Network Trash Folder
102+
Temporary Items
103+
.apdisk
104+
105+
### VisualStudioCode ###
106+
.vscode/*
107+
!.vscode/settings.json
108+
!.vscode/tasks.json
109+
!.vscode/launch.json
110+
!.vscode/extensions.json
111+
112+
### Windows ###
113+
# Windows thumbnail cache files
114+
Thumbs.db
115+
ehthumbs.db
116+
ehthumbs_vista.db
117+
118+
# Dump file
119+
*.stackdump
120+
121+
# Folder config file
122+
[Dd]esktop.ini
123+
124+
# Recycle Bin used on file shares
125+
$RECYCLE.BIN/
126+
127+
# Windows Installer files
128+
*.cab
129+
*.msi
130+
*.msix
131+
*.msm
132+
*.msp
133+
134+
# Windows shortcuts
135+
*.lnk
136+
137+
### Gradle ###
138+
.gradle
139+
/build/
140+
141+
# Ignore Gradle GUI config
142+
gradle-app.setting
143+
144+
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
145+
!gradle-wrapper.jar
146+
147+
# Cache of project
148+
.gradletasknamecache
149+
150+
# # Work around https://youtrack.jetbrains.com/issue/IDEA-116898
151+
# gradle/wrapper/gradle-wrapper.properties
152+
153+
# # VS Code Specific Java Settings
154+
.classpath
155+
.project
156+
.settings/
157+
bin/
158+
159+
160+
# End of https://www.gitignore.io/api/c++,java,linux,macos,gradle,windows,visualstudiocode

FRC_Project_01/FrcProject_01/.project

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<projectDescription>
33
<name>FrcProject_01</name>
4-
<comment></comment>
4+
<comment>Project FrcProject_01 created by Buildship.</comment>
55
<projects>
66
</projects>
77
<buildSpec>
@@ -10,9 +10,14 @@
1010
<arguments>
1111
</arguments>
1212
</buildCommand>
13+
<buildCommand>
14+
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
1318
</buildSpec>
1419
<natures>
1520
<nature>org.eclipse.jdt.core.javanature</nature>
16-
<nature>edu.wpi.first.wpilib.plugins.core.nature.FRCProjectNature</nature>
21+
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
1722
</natures>
1823
</projectDescription>
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+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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+
},
13+
"wpilib.online": true
14+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"currentLanguage": "java",
3+
"teamNumber": 3647
4+
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
plugins {
2+
id "java"
3+
id "edu.wpi.first.GradleRIO" version "2019.0.0-alpha-3"
4+
}
5+
6+
def ROBOT_CLASS = "frc.robot.Robot"
7+
8+
// Define my targets (RoboRIO) and artifacts (deployable files)
9+
// This is added by GradleRIO's backing project EmbeddedTools.
10+
deploy {
11+
targets {
12+
target("roborio", edu.wpi.first.gradlerio.frc.RoboRIO) {
13+
// Team number is loaded either from the .wpilib/wpilib_preferences.json
14+
// or from command line. If not found an exception will be thrown.
15+
// You can use getTeamOrDefault(team) instead of getTeamNumber if you
16+
// want to store a team number in this file.
17+
team = getTeamNumber()
18+
}
19+
}
20+
artifacts {
21+
artifact('frcJava', edu.wpi.first.gradlerio.frc.FRCJavaArtifact) {
22+
targets << "roborio"
23+
// Debug can be overridden by command line, for use with VSCode
24+
debug = getDebugOrDefault(false)
25+
}
26+
}
27+
}
28+
29+
// Defining my dependencies. In this case, WPILib (+ friends), CTRE Toolsuite (Talon SRX)
30+
// and NavX.
31+
dependencies {
32+
compile wpilib()
33+
compile ctre()
34+
compile navx()
35+
}
36+
37+
// Setting up my Jar File. In this case, adding all libraries into the main jar ('fat jar')
38+
// in order to make them all available at runtime. Also adding the manifest so WPILib
39+
// knows where to look for our Robot Class.
40+
jar {
41+
from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
42+
manifest edu.wpi.first.gradlerio.GradleRIOPlugin.javaManifest(ROBOT_CLASS)
43+
}
44+
45+
// Force Java 8 Compatibility mode for deployed code, in case the develoment
46+
// system is using Java 10.
47+
compileJava {
48+
sourceCompatibility = 1.8
49+
targetCompatibility = 1.8
50+
}
51+
52+
wrapper {
53+
gradleVersion = '4.9'
54+
}

FRC_Project_01/FrcProject_01/build.properties

-4
This file was deleted.

FRC_Project_01/FrcProject_01/build.xml

-30
This file was deleted.
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.9-bin.zip
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)