Skip to content

Commit 0aeb93a

Browse files
authored
Update to 2020 Beta 2 (#61)
1 parent 2649608 commit 0aeb93a

38 files changed

+35
-4276
lines changed

build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
1111

1212
plugins {
1313
kotlin("jvm") version "1.3.30" apply false
14-
id("edu.wpi.first.GradleRIO") version "2019.4.1" apply false
14+
id("edu.wpi.first.GradleRIO") version "2020.1.1-beta-2" apply false
1515
id("io.gitlab.arturbosch.detekt") version "1.0.0-RC13"
1616
maven
1717
`maven-publish`

core/build.gradle.kts

+5-1
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,12 @@
66
* Copyright 2019, Green Hope Falcons
77
*/
88

9+
plugins {
10+
id("edu.wpi.first.GradleRIO")
11+
}
12+
913
dependencies {
10-
compile(project(":wpilib2020"))
1114
compile("org.apache.commons", "commons-math3", "3.6.1")
1215
compile("com.github.FRCTeam4069:Keigen:1.4.0")
16+
wpi.deps.wpilib().forEach { compile(it) }
1317
}

core/src/main/kotlin/org/ghrobotics/lib/mathematics/twodim/trajectory/FalconTrajectoryConfig.kt

+2-13
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,9 @@ import org.ghrobotics.lib.mathematics.units.derived.LinearVelocity
2323
*/
2424
@Suppress("MemberVisibilityCanBePrivate")
2525
class FalconTrajectoryConfig(
26-
val maxVelocity: SIUnit<LinearVelocity>,
27-
val maxAcceleration: SIUnit<LinearAcceleration>
26+
maxVelocity: SIUnit<LinearVelocity>,
27+
maxAcceleration: SIUnit<LinearAcceleration>
2828
) : TrajectoryConfig(maxVelocity.value, maxAcceleration.value) {
29-
30-
/**
31-
* Get the starting velocity of the trajectory.
32-
*/
33-
val startVelocity get() = SIUnit<LinearVelocity>(super.getStartVelocityMetersPerSecond())
34-
35-
/**
36-
* Get the ending velocity of the trajectory.
37-
*/
38-
val endVelocity get() = SIUnit<LinearVelocity>(super.getEndVelocityMetersPerSecond())
39-
4029
/**
4130
* Set the starting velocity of the trajectory.
4231
* @param startVelocity The start velocity of the trajectory.

settings.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
*/
88

99
rootProject.name = "FalconLibrary"
10-
include("core", "wpi", "vendorCTRE", "vendorREV", "vendorNAVX", "wpilib2020")
10+
include("core", "wpi", "vendorCTRE", "vendorREV", "vendorNAVX")

vendorNAVX/vendordeps/navx_frc.json

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,34 @@
11
{
22
"fileName": "navx_frc.json",
33
"name": "KauaiLabs_navX_FRC",
4-
"version": "3.1.366",
4+
"version": "3.1.385",
55
"uuid": "cb311d09-36e9-4143-a032-55bb2b94443b",
66
"mavenUrls": [
77
"https://repo1.maven.org/maven2/"
88
],
9-
"jsonUrl": "https://www.kauailabs.com/dist/frc/2019/navx_frc.json",
9+
"jsonUrl": "https://www.kauailabs.com/dist/frc/2020/navx_frc.json",
1010
"javaDependencies": [
1111
{
1212
"groupId": "com.kauailabs.navx.frc",
1313
"artifactId": "navx-java",
14-
"version": "3.1.366"
14+
"version": "3.1.385"
1515
}
1616
],
1717
"jniDependencies": [],
1818
"cppDependencies": [
1919
{
2020
"groupId": "com.kauailabs.navx.frc",
2121
"artifactId": "navx-cpp",
22-
"version": "3.1.366",
22+
"version": "3.1.385",
2323
"headerClassifier": "headers",
2424
"sourcesClassifier": "sources",
2525
"sharedLibrary": false,
2626
"libName": "navx_frc",
2727
"skipInvalidPlatforms": true,
2828
"binaryPlatforms": [
29-
"linuxathena"
29+
"linuxathena",
30+
"linuxraspbian"
3031
]
3132
}
3233
]
33-
}
34+
}

vendorREV/vendordeps/REVRobotics.json

+19-10
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"fileName": "REVRobotics.json",
33
"name": "REVRobotics",
4-
"version": "1.1.9",
4+
"version": "1.4.33",
55
"uuid": "3f48eb8c-50fe-43a6-9cb7-44c86353c4cb",
66
"mavenUrls": [
77
"http://www.revrobotics.com/content/sw/max/sdk/maven/"
@@ -11,44 +11,53 @@
1111
{
1212
"groupId": "com.revrobotics.frc",
1313
"artifactId": "SparkMax-java",
14-
"version": "1.1.9"
14+
"version": "1.4.33"
1515
}
1616
],
1717
"jniDependencies": [
1818
{
1919
"groupId": "com.revrobotics.frc",
2020
"artifactId": "SparkMax-driver",
21-
"version": "1.1.9",
21+
"version": "1.4.33",
2222
"skipInvalidPlatforms": true,
2323
"isJar": false,
2424
"validPlatforms": [
25-
"linuxathena"
25+
"windowsx86-64",
26+
"windowsx86",
27+
"linuxathena",
28+
"linuxraspbian"
2629
]
2730
}
2831
],
2932
"cppDependencies": [
3033
{
3134
"groupId": "com.revrobotics.frc",
3235
"artifactId": "SparkMax-cpp",
33-
"version": "1.1.9",
34-
"libName": "libSparkMax",
36+
"version": "1.4.33",
37+
"libName": "SparkMax",
3538
"headerClassifier": "headers",
3639
"sharedLibrary": false,
3740
"skipInvalidPlatforms": true,
3841
"binaryPlatforms": [
39-
"linuxathena"
42+
"windowsx86-64",
43+
"windowsx86",
44+
"linuxathena",
45+
"linuxraspbian"
4046
]
4147
},
4248
{
4349
"groupId": "com.revrobotics.frc",
4450
"artifactId": "SparkMax-driver",
45-
"version": "1.1.9",
46-
"libName": "libSparkMaxDriver",
51+
"version": "1.4.33",
52+
"libName": "SparkMaxDriver",
4753
"headerClassifier": "headers",
4854
"sharedLibrary": false,
4955
"skipInvalidPlatforms": true,
5056
"binaryPlatforms": [
51-
"linuxathena"
57+
"windowsx86-64",
58+
"windowsx86",
59+
"linuxathena",
60+
"linuxraspbian"
5261
]
5362
}
5463
]

wpi/build.gradle.kts

-11
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,7 @@ plugins {
1010
id("edu.wpi.first.GradleRIO")
1111
}
1212

13-
repositories {
14-
// maven { setUrl("https://maven.woke.engineer/") }
15-
}
16-
1713
dependencies {
1814
compile(project(":core"))
1915
compile("com.github.salomonbrys.kotson", "kotson", "2.5.0")
20-
compile("com.github.Oblarg:command-rewrite-jitpack:fb950f049d")
21-
22-
wpi.deps.wpilib().forEach { compile(it) }
23-
24-
// wpi.deps.wpilibJni().forEach { nativeZip(it) }
25-
// wpi.deps.wpilibDesktopJni().forEach { nativeDesktopZip(it) }
26-
// wpi.deps.wpilibJars().forEach { compile(it) }
2716
}

wpilib2020/build.gradle.kts

-23
This file was deleted.

wpilib2020/src/main/java/edu/wpi/first/wpilibj/controller/RamseteController.java

-150
This file was deleted.

0 commit comments

Comments
 (0)