Skip to content

Commit

Permalink
Updated to add feedforward to falcon drive motors
Browse files Browse the repository at this point in the history
  • Loading branch information
thenetworkgrinch committed Jan 16, 2024
1 parent 0013d87 commit 73c7e18
Show file tree
Hide file tree
Showing 69 changed files with 278 additions and 19 deletions.
2 changes: 1 addition & 1 deletion publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'maven-publish'

ext.licenseFile = files("$rootDir/LICENSE.txt")

def pubVersion = '2024.4.1'
def pubVersion = '2024.4.2'

def outputsFolder = file("$buildDir/outputs")

Expand Down
176 changes: 176 additions & 0 deletions publish.gradle.bak
Original file line number Diff line number Diff line change
@@ -0,0 +1,176 @@
apply plugin: 'maven-publish'

ext.licenseFile = files("$rootDir/LICENSE.txt")

def pubVersion = '2024.4.1'

def outputsFolder = file("$buildDir/outputs")

def versionFile = file("$outputsFolder/version.txt")

task outputVersions() {
description = 'Prints the versions of wpilib to a file for use by the downstream packaging project'
group = 'Build'
outputs.files(versionFile)

doFirst {
buildDir.mkdir()
outputsFolder.mkdir()
}

doLast {
versionFile.write pubVersion
}
}

task libraryBuild() {}

build.dependsOn outputVersions

task copyAllOutputs(type: Copy) {
destinationDir file("$buildDir/allOutputs")
from versionFile
dependsOn outputVersions
}

build.dependsOn copyAllOutputs
copyAllOutputs.dependsOn outputVersions

ext.addTaskToCopyAllOutputs = { task ->
copyAllOutputs.dependsOn task
copyAllOutputs.inputs.file task.archiveFile
copyAllOutputs.from task.archiveFile
}

def artifactGroupId = 'swervelib'
def baseArtifactId = 'YAGSL'
def zipBaseName = "_GROUP_swervelib_ID_${baseArtifactId}-cpp_CLS"
def javaBaseName = "_GROUP_swervelib_ID_${baseArtifactId}-java_CLS"

task cppHeadersZip(type: Zip) {
destinationDirectory = outputsFolder
archiveBaseName = zipBaseName
archiveClassifier = "headers"

from(licenseFile) {
into '/'
}

from('src/main/native/include') {
into '/'
}
}

task cppSourceZip(type: Zip) {
destinationDirectory = outputsFolder
archiveBaseName = zipBaseName
archiveClassifier = "sources"

from(licenseFile) {
into '/'
}

from('src/main/native/cpp') {
into '/'
}
}

build.dependsOn cppHeadersZip
addTaskToCopyAllOutputs(cppHeadersZip)
build.dependsOn cppSourceZip
addTaskToCopyAllOutputs(cppSourceZip)

task sourcesJar(type: Jar, dependsOn: classes) {
archiveClassifier = 'sources'
from sourceSets.main.allSource
}

task javadocJar(type: Jar, dependsOn: javadoc) {
archiveClassifier = 'javadoc'
from javadoc.destinationDir
}

task outputJar(type: Jar, dependsOn: classes) {
archiveBaseName = javaBaseName
destinationDirectory = outputsFolder
from sourceSets.main.output
}

task outputSourcesJar(type: Jar, dependsOn: classes) {
archiveBaseName = javaBaseName
destinationDirectory = outputsFolder
archiveClassifier = 'sources'
from sourceSets.main.allSource
}

task outputJavadocJar(type: Jar, dependsOn: javadoc) {
archiveBaseName = javaBaseName
destinationDirectory = outputsFolder
archiveClassifier = 'javadoc'
from javadoc.destinationDir
}

artifacts {
archives sourcesJar
archives javadocJar
archives outputJar
archives outputSourcesJar
archives outputJavadocJar
}

addTaskToCopyAllOutputs(outputSourcesJar)
addTaskToCopyAllOutputs(outputJavadocJar)
addTaskToCopyAllOutputs(outputJar)

build.dependsOn outputSourcesJar
build.dependsOn outputJavadocJar
build.dependsOn outputJar

libraryBuild.dependsOn build

def releasesRepoUrl = "$buildDir/repos/releases"

publishing {
repositories {
maven {

url = releasesRepoUrl
}
}
}

task cleanReleaseRepo(type: Delete) {
delete releasesRepoUrl
}

tasks.matching {it != cleanReleaseRepo}.all {it.dependsOn cleanReleaseRepo}

model {
publishing {
def taskList = createComponentZipTasks($.components, ['YAGSL'], zipBaseName, Zip, project, includeStandardZipFormat)

publications {
cpp(MavenPublication) {
taskList.each {
artifact it
}
artifact cppHeadersZip
artifact cppSourceZip

artifactId = "${baseArtifactId}-cpp"
groupId artifactGroupId
version pubVersion
}

java(MavenPublication) {
artifact jar
artifact sourcesJar
artifact javadocJar

artifactId = "${baseArtifactId}-java"
groupId artifactGroupId
version pubVersion
}
}
}
}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
08caa4af8eaae4675661179f851ffb27
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
de3b1976111495ed71be02dc1e444364198ecaf0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fb99f57bbdc7c3b30b185c9643609f16d4e60d7e3b1e69dfe1f112924fb168ec
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
418b466a46440387ed256fa4937014c875ff04f0e454b13af2caf3d9a44734720e2f1c79df8224a7e9dead59a1d018b0635cae03daa77908c949395df953bb96
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
08caa4af8eaae4675661179f851ffb27
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
de3b1976111495ed71be02dc1e444364198ecaf0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fb99f57bbdc7c3b30b185c9643609f16d4e60d7e3b1e69dfe1f112924fb168ec
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
418b466a46440387ed256fa4937014c875ff04f0e454b13af2caf3d9a44734720e2f1c79df8224a7e9dead59a1d018b0635cae03daa77908c949395df953bb96
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
08caa4af8eaae4675661179f851ffb27
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
de3b1976111495ed71be02dc1e444364198ecaf0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fb99f57bbdc7c3b30b185c9643609f16d4e60d7e3b1e69dfe1f112924fb168ec
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
418b466a46440387ed256fa4937014c875ff04f0e454b13af2caf3d9a44734720e2f1c79df8224a7e9dead59a1d018b0635cae03daa77908c949395df953bb96
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
08caa4af8eaae4675661179f851ffb27
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
de3b1976111495ed71be02dc1e444364198ecaf0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fb99f57bbdc7c3b30b185c9643609f16d4e60d7e3b1e69dfe1f112924fb168ec
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
418b466a46440387ed256fa4937014c875ff04f0e454b13af2caf3d9a44734720e2f1c79df8224a7e9dead59a1d018b0635cae03daa77908c949395df953bb96
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
08caa4af8eaae4675661179f851ffb27
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
de3b1976111495ed71be02dc1e444364198ecaf0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fb99f57bbdc7c3b30b185c9643609f16d4e60d7e3b1e69dfe1f112924fb168ec
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
418b466a46440387ed256fa4937014c875ff04f0e454b13af2caf3d9a44734720e2f1c79df8224a7e9dead59a1d018b0635cae03daa77908c949395df953bb96
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
08caa4af8eaae4675661179f851ffb27
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
de3b1976111495ed71be02dc1e444364198ecaf0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fb99f57bbdc7c3b30b185c9643609f16d4e60d7e3b1e69dfe1f112924fb168ec
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
418b466a46440387ed256fa4937014c875ff04f0e454b13af2caf3d9a44734720e2f1c79df8224a7e9dead59a1d018b0635cae03daa77908c949395df953bb96
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>swervelib</groupId>
<artifactId>YAGSL-cpp</artifactId>
<version>2024.4.2</version>
<packaging>pom</packaging>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1d7d41b0752476cf2a52925a2c17a27f
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
c049b2c4861ba99d5b132ad2adc603d9e2a16339
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
4f409fae9610954693a83545778b8b6b9ac8aa27fb1bab81dc306c40bb5cb75d
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
d470a4990c9348edd67991006eb59de52f74ad35091a77f894791bb87b99f1c48ec75653aa574d12ff7b4ddd7cdf6c47361a98b501328ef7147ea931bd7a946a
8 changes: 4 additions & 4 deletions yagsl/repos/swervelib/YAGSL-cpp/maven-metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
<groupId>swervelib</groupId>
<artifactId>YAGSL-cpp</artifactId>
<versioning>
<latest>2024.4.1</latest>
<release>2024.4.1</release>
<latest>2024.4.2</latest>
<release>2024.4.2</release>
<versions>
<version>2024.4.1</version>
<version>2024.4.2</version>
</versions>
<lastUpdated>20240116224233</lastUpdated>
<lastUpdated>20240116224638</lastUpdated>
</versioning>
</metadata>
2 changes: 1 addition & 1 deletion yagsl/repos/swervelib/YAGSL-cpp/maven-metadata.xml.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6e3bc0472898a287e1d6cc728fb58770
547e8a3dc36d9f039f802bcdb640268b
2 changes: 1 addition & 1 deletion yagsl/repos/swervelib/YAGSL-cpp/maven-metadata.xml.sha1
Original file line number Diff line number Diff line change
@@ -1 +1 @@
77ec5190015d8bd9bf02f1514ead5ee428b3c838
e028bfedee8d7b5f4b85f0c3d6a339ff57bb92ca
2 changes: 1 addition & 1 deletion yagsl/repos/swervelib/YAGSL-cpp/maven-metadata.xml.sha256
Original file line number Diff line number Diff line change
@@ -1 +1 @@
f734e9524bd04b8d8b32a40264916e69a0d22b3563974b845abf682f075b3220
2f0f58e3ccfeee72f899f56820bdf73ca878cb4493281eb06fd8eaee2e40bed6
2 changes: 1 addition & 1 deletion yagsl/repos/swervelib/YAGSL-cpp/maven-metadata.xml.sha512
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3cfe539c47f3972caa1c7f8f67bc21cd5b54dd7a6c90f24fb8e48d2c33c1116d0252bdd350b5104ae00051c592d62555e26ccc1238729d91618e364699c5692d
f8b4508f01cbec51b37b9425d7a8f3139cf9bf748bd6924e3d731a8728ef3a012f6c41466d52f7cecf5ba978010584ccc879157a788373100baac93e3eae8974
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
c0fdb9ebfcbbacb5eaad6f2baf619f16
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
209e22a9923c07709947365bfcd699b4d11aa415
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
b9ccefb98220e7a20dd762e95571df4bbe9f1765ab6117b24e7c619ac6827041
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
01aafd7e780d9fd88f58298812de800eb9ba59096f2e5a5a02d4700e0d614eab3caf5f2c13c07df29980d6bdf68cc34634334ac98f1aa8ea17e80c26562a6cd4
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fcd5eb92b1b1948e0995065ec06494e5
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
be556717fc0c5ff197abf7f21b3335807f600f34
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
73c4b51444530a04d461dd083becd758593b98d9cbbd7d40663bee8c8cedab67
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3ab881d624abe036697e022acdfc2b7deaf591c34b8ffa5ed8aff182a92cee3a363ee1643e6c7849d0076862e17ecb8a0d667acda783d152c802e769a8f76a53
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
323ed6176b4e5f053d9683f8317d00fc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fcc1ab36632596e08f49f79feb32174cf7cb9398
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
a7b7893faddf5d1c396a59f82fd85aef5bfa6b2fb8fee6654c5665697e0ee6df
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
09afa2daf4d6baa4c14d1c3be2043dc3111543d525b3440583b7ce73aa77150f9c3c8867957beebdec695dbc9a3260f0fc02a038150d37cb7edf3c5b27e3fe67
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>swervelib</groupId>
<artifactId>YAGSL-java</artifactId>
<version>2024.4.2</version>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
938665c4ebe1d44ae7e4a82f07132605
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
faec6559761c82c368b9c6cf163a1a58f8cdb16a
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
c8d6eac897194d1ed7e4a08e2a4930a8e8b9668fa76bc56429088ccd5381272f
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
31788008cbc5ee757ac59a2fcbaf9705033074a50ac824141395ad7132d0b11ded3e019c2ae42d06e625093d7b008151c43edf6639faf2e53e5b5195c6912616
8 changes: 4 additions & 4 deletions yagsl/repos/swervelib/YAGSL-java/maven-metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
<groupId>swervelib</groupId>
<artifactId>YAGSL-java</artifactId>
<versioning>
<latest>2024.4.1</latest>
<release>2024.4.1</release>
<latest>2024.4.2</latest>
<release>2024.4.2</release>
<versions>
<version>2024.4.1</version>
<version>2024.4.2</version>
</versions>
<lastUpdated>20240116224240</lastUpdated>
<lastUpdated>20240116224638</lastUpdated>
</versioning>
</metadata>
2 changes: 1 addition & 1 deletion yagsl/repos/swervelib/YAGSL-java/maven-metadata.xml.md5
Original file line number Diff line number Diff line change
@@ -1 +1 @@
c1717a1ac328ad219b67f85a8c834c8f
eb30f0face20d2c22ce32a33aa96c461
2 changes: 1 addition & 1 deletion yagsl/repos/swervelib/YAGSL-java/maven-metadata.xml.sha1
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ea100d68dcf60a4ffad7bc2f77cd76e390204967
11df3a7840215c52ef47e4a1ec06f0afdcde172c
Loading

0 comments on commit 73c7e18

Please sign in to comment.