Skip to content

Commit f3e8068

Browse files
committed
v2023.0.0
0 parents  commit f3e8068

34 files changed

+4026
-0
lines changed

.gitattributes

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto
3+
4+
# Custom for Visual Studio
5+
*.cs diff=csharp
6+
7+
# Standard to msysgit
8+
*.doc diff=astextplain
9+
*.DOC diff=astextplain
10+
*.docx diff=astextplain
11+
*.DOCX diff=astextplain
12+
*.dot diff=astextplain
13+
*.DOT diff=astextplain
14+
*.pdf diff=astextplain
15+
*.PDF diff=astextplain
16+
*.rtf diff=astextplain
17+
*.RTF diff=astextplain

.gitignore

+229
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,229 @@
1+
### C++ ###
2+
# Compiled Object files
3+
*.slo
4+
*.lo
5+
*.o
6+
*.obj
7+
8+
# Precompiled Headers
9+
*.gch
10+
*.pch
11+
12+
# Compiled Dynamic libraries
13+
*.so
14+
*.dylib
15+
*.dll
16+
17+
# Compiled Static libraries
18+
*.lai
19+
*.la
20+
*.a
21+
*.lib
22+
23+
# Executables
24+
*.exe
25+
*.out
26+
*.app
27+
28+
.vs/
29+
*.def
30+
!ntcore.def
31+
!ntcore-jni.def
32+
*.opensdf
33+
*.vcxproj
34+
*.vcxproj.user
35+
*.sdf
36+
*.sublime-project
37+
*.sublime-workspace
38+
39+
# Compiled Java files
40+
*.class
41+
42+
# Build directories
43+
/.gradle
44+
/build*
45+
!build.gradle
46+
/native
47+
/arm
48+
/gmock/build
49+
/release
50+
51+
52+
# Created by https://www.gitignore.io/api/intellij,eclipse,netbeans,java,gradle,c++,cmake
53+
54+
### Intellij ###
55+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
56+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
57+
58+
# User-specific stuff:
59+
.idea/*
60+
61+
## File-based project format:
62+
*.iws
63+
64+
## Plugin-specific files:
65+
66+
# IntelliJ
67+
/out/
68+
69+
# mpeltonen/sbt-idea plugin
70+
.idea_modules/
71+
72+
# JIRA plugin
73+
atlassian-ide-plugin.xml
74+
75+
# Crashlytics plugin (for Android Studio and IntelliJ)
76+
com_crashlytics_export_strings.xml
77+
crashlytics.properties
78+
crashlytics-build.properties
79+
fabric.properties
80+
81+
### Intellij Patch ###
82+
# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721
83+
84+
# *.iml
85+
# modules.xml
86+
87+
88+
### Eclipse ###
89+
90+
.metadata
91+
bin/
92+
tmp/
93+
*.tmp
94+
*.bak
95+
*.swp
96+
*~.nib
97+
local.properties
98+
.settings/
99+
.loadpath
100+
.recommenders
101+
102+
# Eclipse Core
103+
.project
104+
105+
# External tool builders
106+
.externalToolBuilders/
107+
108+
# Locally stored "Eclipse launch configurations"
109+
*.launch
110+
111+
# PyDev specific (Python IDE for Eclipse)
112+
*.pydevproject
113+
114+
# CDT-specific (C/C++ Development Tooling)
115+
.cproject
116+
117+
# JDT-specific (Eclipse Java Development Tools)
118+
.classpath
119+
120+
# Java annotation processor (APT)
121+
.factorypath
122+
123+
# PDT-specific (PHP Development Tools)
124+
.buildpath
125+
126+
# sbteclipse plugin
127+
.target
128+
129+
# Tern plugin
130+
.tern-project
131+
132+
# TeXlipse plugin
133+
.texlipse
134+
135+
# STS (Spring Tool Suite)
136+
.springBeans
137+
138+
# Code Recommenders
139+
.recommenders/
140+
141+
142+
### NetBeans ###
143+
nbproject/private/
144+
build/
145+
nbbuild/
146+
dist/
147+
nbdist/
148+
nbactions.xml
149+
.nb-gradle/
150+
151+
152+
### C++ ###
153+
# Compiled Object files
154+
*.slo
155+
*.lo
156+
*.o
157+
*.obj
158+
159+
# Precompiled Headers
160+
*.gch
161+
*.pch
162+
163+
# Compiled Dynamic libraries
164+
*.so
165+
*.dylib
166+
*.dll
167+
168+
# Fortran module files
169+
*.mod
170+
171+
# Compiled Static libraries
172+
*.lai
173+
*.la
174+
*.a
175+
*.lib
176+
177+
# Executables
178+
*.exe
179+
*.out
180+
*.app
181+
182+
### CMake ###
183+
CMakeCache.txt
184+
CMakeFiles
185+
CMakeScripts
186+
Makefile
187+
cmake_install.cmake
188+
install_manifest.txt
189+
190+
191+
### Java ###
192+
*.class
193+
194+
# Mobile Tools for Java (J2ME)
195+
.mtj.tmp/
196+
197+
# Package Files #
198+
*.jar
199+
*.war
200+
*.ear
201+
202+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
203+
hs_err_pid*
204+
205+
206+
### Gradle ###
207+
.gradle
208+
build/
209+
210+
# Ignore Gradle GUI config
211+
gradle-app.setting
212+
213+
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
214+
!gradle-wrapper.jar
215+
216+
# Cache of project
217+
.gradletasknamecache
218+
219+
# # Work around https://youtrack.jetbrains.com/issue/IDEA-116898
220+
# gradle/wrapper/gradle-wrapper.properties
221+
222+
# VSCode
223+
.vscode/
224+
225+
InitializeTemplate.py
226+
TemplateFiles/*
227+
228+
# Battery Tracker
229+
previous_battery.txt

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 LASA Robotics
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
![Release](https://jitpack.io/v/lasarobotics/PurpleLib.svg)
2+
(https://jitpack.io/#lasarobotics/PurpleLib)
3+
4+
# PurpleLib
5+
Custom library for FRC team 418, Purple Haze
6+
7+
Features:
8+
* Spark Max wrapper with AdvantageKit logging and smooth motion
9+
* MAXSwerve module support
10+
* Turn PID
11+
* Traction control
12+
* Swerve second order kinematics correction
13+
* Configurable input maps
14+
* LED strip support
15+
* JSON read/write
16+
* Battery scanning and tracking
17+
18+
19+
# Installing
20+
Add the following to `build.gradle` where VERSION is the release tag, e.g. 2023.0.0
21+
```
22+
repositories {
23+
maven { url 'https://jitpack.io' }
24+
}
25+
dependencies {
26+
implementation 'com.github.lasarobotics:PurpleLib:VERSION'
27+
}
28+
```
29+
30+
# Releasing
31+
* Create a release in GitHub. Jitpack does the rest.

VERSION

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v2023.0.0

build.gradle

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
plugins {
2+
id 'java-library'
3+
id 'maven-publish'
4+
id "edu.wpi.first.GradleRIO" version "2023.4.3"
5+
}
6+
7+
group = 'com.github.lasarobotics'
8+
9+
sourceCompatibility = JavaVersion.VERSION_11
10+
targetCompatibility = JavaVersion.VERSION_11
11+
12+
repositories {
13+
maven {
14+
url = uri("https://maven.pkg.github.com/Mechanical-Advantage/AdvantageKit")
15+
credentials {
16+
username = "Mechanical-Advantage-Bot"
17+
password = "\u0067\u0068\u0070\u005f\u006e\u0056\u0051\u006a\u0055\u004f\u004c\u0061\u0079\u0066\u006e\u0078\u006e\u0037\u0051\u0049\u0054\u0042\u0032\u004c\u004a\u006d\u0055\u0070\u0073\u0031\u006d\u0037\u004c\u005a\u0030\u0076\u0062\u0070\u0063\u0051"
18+
}
19+
}
20+
}
21+
22+
// Set this to true to enable desktop support.
23+
def includeDesktopSupport = true
24+
25+
dependencies {
26+
implementation wpi.java.deps.wpilib()
27+
implementation wpi.java.vendor.java()
28+
29+
implementation 'org.apache.commons:commons-math3:3.+'
30+
31+
annotationProcessor 'org.littletonrobotics.akit.junction:junction-autolog:2.2.4'
32+
}
33+
34+
task sourcesJar(type: Jar, dependsOn: classes) {
35+
archiveClassifier = "sources"
36+
from sourceSets.main.allSource
37+
}
38+
39+
task javadocJar(type: Jar, dependsOn: javadoc) {
40+
archiveClassifier = "javadoc"
41+
from javadoc.destinationDir
42+
}
43+
44+
artifacts {
45+
archives sourcesJar
46+
archives javadocJar
47+
}
48+
49+
publishing {
50+
publications {
51+
mavenJava(MavenPublication) {
52+
from components.java
53+
}
54+
}
55+
}

gradle/wrapper/gradle-wrapper.jar

58.1 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-8.4-bin.zip
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=permwrapper/dists

0 commit comments

Comments
 (0)