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

Commit cccf5f8

Browse files
committed
First commit
0 parents  commit cccf5f8

18 files changed

+919
-0
lines changed

.gitignore

+161
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,161 @@
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+
imgui.ini
159+
160+
161+
# End of https://www.gitignore.io/api/c++,java,linux,macos,gradle,windows,visualstudiocode

.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

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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+
"**/.settings": true,
13+
"**/.factorypath": true
14+
}
15+
}

.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": "2020",
5+
"teamNumber": 5468
6+
}

build.gradle

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
plugins {
2+
id "java"
3+
id "edu.wpi.first.GradleRIO" version "2020.1.2"
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+
// Defining my dependencies. In this case, WPILib (+ friends), and vendor libraries.
44+
// Also defines JUnit 4.
45+
dependencies {
46+
implementation wpi.deps.wpilib()
47+
nativeZip wpi.deps.wpilibJni(wpi.platforms.roborio)
48+
nativeDesktopZip wpi.deps.wpilibJni(wpi.platforms.desktop)
49+
50+
51+
implementation wpi.deps.vendor.java()
52+
nativeZip wpi.deps.vendor.jni(wpi.platforms.roborio)
53+
nativeDesktopZip wpi.deps.vendor.jni(wpi.platforms.desktop)
54+
55+
testImplementation 'junit:junit:4.12'
56+
57+
// Enable simulation gui support. Must check the box in vscode to enable support
58+
// upon debugging
59+
simulation wpi.deps.sim.gui(wpi.platforms.desktop, false)
60+
}
61+
62+
// Setting up my Jar File. In this case, adding all libraries into the main jar ('fat jar')
63+
// in order to make them all available at runtime. Also adding the manifest so WPILib
64+
// knows where to look for our Robot Class.
65+
jar {
66+
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
67+
manifest edu.wpi.first.gradlerio.GradleRIOPlugin.javaManifest(ROBOT_MAIN_CLASS)
68+
}

gradle/wrapper/gradle-wrapper.jar

57.3 KB
Binary file not shown.
+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=permwrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.0.1-bin.zip
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=permwrapper/dists

0 commit comments

Comments
 (0)