Skip to content
This repository has been archived by the owner on Dec 24, 2018. It is now read-only.

[MINOR] v1.3.0 #64

Open
wants to merge 44 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
9a5f200
Add override button to supply full power to the drivetrain
andrewda Apr 19, 2018
3fdcb7e
Auto path tuning at Worlds
SUPERCILEX Apr 19, 2018
2a9ddb3
Add UDPServer
andrewda May 15, 2018
adb93c0
Add better null checking
andrewda May 15, 2018
18cca15
Stops driving forward without any joystick controls
andrewda May 18, 2018
1664506
Merge remote-tracking branch 'origin/development' into development
andrewda May 18, 2018
a241cce
Stop driving forward without any joystick controls
andrewda May 18, 2018
a89852f
Make Travis badge development branch only
andrewda Jun 5, 2018
25e5244
Adds rotation speed reduction for slow mode
andrewda Jun 15, 2018
f82341c
Merge remote-tracking branch 'origin/development' into development
andrewda Jun 29, 2018
10bdef1
Parabolic speed reduction
evanmyersflow Jun 29, 2018
d455105
Acceleration reduction in teleop
andrewda Jun 30, 2018
23c2ce3
Stops raising the elevator when resting at the bottom
andrewda Jun 30, 2018
4bab7b5
Cleaning logic for elevator speed setting
andrewda Jul 4, 2018
215871f
Cleaning logic for elevator speed setting
evanmyersflow Jul 4, 2018
8fb5ce8
More cleaning
evanmyersflow Jul 4, 2018
b13bc11
Bugfixes for setting elevator speed
andrewda Jul 7, 2018
c002c77
Start of 2 cube switch auto
evanmyersflow Jul 7, 2018
c3dcf91
2 cube center switch auto path (needs tuning)
evanmyersflow Jul 10, 2018
4716976
My cleaned Elevator logic code didn't work, so went back to original …
andrewda Jul 11, 2018
4e7e94b
Different LED modes as information for drivers
evanmyersflow Jul 11, 2018
a30cfd2
Different LED modes as information for drivers
evanmyersflow Jul 11, 2018
00e5860
Merge remote-tracking branch 'origin/development' into development
evanmyersflow Jul 11, 2018
d3ab37c
Redoing logic for LED priority
evanmyersflow Jul 11, 2018
6e14b1a
Going back to girl con elevator code and switching Elevator encoders …
evanmyersflow Jul 14, 2018
5e9df2f
Accidentally removed center switch auto entirely, this keeps single c…
evanmyersflow Jul 14, 2018
d50e017
Using position val
evanmyersflow Jul 14, 2018
97a018b
Revert "Auto path tuning at Worlds"
andrewda Jul 21, 2018
72d778e
Auto path tuning
andrewda Jul 21, 2018
a8869d8
Remove unused import
andrewda Jul 21, 2018
fb2af67
Add UDP server for vision tracking (#58)
andrewda Jul 21, 2018
3d6618c
Use vision for lights
andrewda Jul 21, 2018
cd0f424
Add telemetry logging (#60)
andrewda Jul 27, 2018
c5167e8
Remove generated point logging
andrewda Jul 28, 2018
1988740
Update gradle and bump dependencies
andrewda Jul 29, 2018
c22ffdb
Bump GradleRIO version
andrewda Aug 5, 2018
d483cda
Fix typo
andrewda Aug 5, 2018
4e2ce92
Use notifier class for path following
andrewda Aug 11, 2018
f9bdecb
Update paths and Sertain version
andrewda Aug 26, 2018
5ad9e33
Fix DriveToCube command
andrewda Aug 26, 2018
22f4859
Tune auto paths
andrewda Sep 23, 2018
cf30819
Update shuffleboard config
andrewda Sep 23, 2018
1553ae5
Fix light code
andrewda Sep 23, 2018
3ac6fb9
Tune auto paths from left side
andrewda Sep 23, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@
!.idea/codeStyles
**.iml
build
src/main/resources/branch.txt
src/main/resources/buildtime.txt
src/main/resources/changes.txt
src/main/resources/commit.txt
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@

SERT's robot code for the 2018 PowerUp game.

[travis-img]: https://img.shields.io/travis/SouthEugeneRoboticsTeam/PowerUp-2018.svg?style=flat-square
[travis-img]: https://img.shields.io/travis/SouthEugeneRoboticsTeam/PowerUp-2018/development.svg?style=flat-square
[travis-url]: https://travis-ci.org/SouthEugeneRoboticsTeam/PowerUp-2018
118 changes: 79 additions & 39 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,32 +1,30 @@
buildscript {
ext.kotlinVersion = '1.2.31'
ext.gradleRioVersion = '2018.03.06'
ext.sertainVersion = '1.2.0'
ext.ktlintVersion = '0.19.0'

repositories {
jcenter()
maven { url 'https://plugins.gradle.org/m2/' }
}

dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath "gradle.plugin.jaci.openrio.gradle:GradleRIO:$gradleRioVersion"
}
import edu.wpi.first.gradlerio.GradleRIOPlugin
import edu.wpi.first.gradlerio.frc.FRCJavaArtifact
import edu.wpi.first.gradlerio.frc.RoboRIO
import java.text.SimpleDateFormat

plugins {
id "java"
id "idea"
id "org.jetbrains.kotlin.jvm" version "1.2.50"
id "edu.wpi.first.GradleRIO" version "2018.06.21"
}

apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'jaci.openrio.gradle.GradleRIO'
ext.kotlinVersion = "1.2.50"
ext.sertainVersion = "1.2.1"
ext.ktlintVersion = "0.19.0"
ext.gsonVersion = "2.8.5"

check.dependsOn "ktlint"
compileKotlin.dependsOn "versionTxt"
tasks.whenTaskAdded { task ->
if (task.name == 'deploy' || task.name == 'deployMain') task.dependsOn 'assemble'
if (task.name == "deploy" || task.name == "deployMain") task.dependsOn "assemble"
}
check.dependsOn 'ktlint'

repositories {
google()
jcenter()
maven { url 'https://jitpack.io' }
maven { url "https://jitpack.io" }
}

configurations {
Expand All @@ -37,6 +35,7 @@ dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion"

compile "org.sert2521.sertain:core:$sertainVersion"
compile "com.google.code.gson:gson:$gsonVersion"

compile wpilib()
compile navx()
Expand All @@ -48,46 +47,87 @@ dependencies {
}

compileKotlin {
kotlinOptions.jvmTarget = '1.8'
kotlinOptions.jvmTarget = "1.8"
}

deploy {
targets {
target('roborio', jaci.openrio.gradle.frc.RoboRIO) {
team = 2521
addresses << '10.25.21.2'
target("roborio", RoboRIO) {
team = getTeamOrDefault(2521)
}
}

artifacts {
artifact('main', jaci.openrio.gradle.frc.FRCJavaArtifact) {
targets << 'roborio'
artifact("main", FRCJavaArtifact) {
targets << "roborio"

debug = false
debug = getDebugOrDefault(false)
}
}
}

wpi {
wpilibVersion = '2018.4.1'
ntcoreVersion = '4.1.0'
opencvVersion = '3.2.0'
cscoreVersion = '1.3.0'
wpiutilVersion = '3.2.0'
wpilibVersion = "2018.4.1"
ntcoreVersion = "4.1.0"
opencvVersion = "3.2.0"
cscoreVersion = "1.3.0"
wpiutilVersion = "3.2.0"

ctreVersion = '5.3.1.0'
navxVersion = '3.0.346'
ctreVersion = "5.5.1.0"
navxVersion = "3.0.348"

shuffleboardVersion = '1.3.1'
shuffleboardVersion = "1.3.1"
}

jar {
from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
manifest jaci.openrio.gradle.GradleRIOPlugin.javaManifest('org.sert2521.powerup.Poe')
manifest GradleRIOPlugin.javaManifest("org.sert2521.powerup.Poe")
}

task ktlint(type: JavaExec) {
main = 'com.github.shyiko.ktlint.Main'
main = "com.github.shyiko.ktlint.Main"
classpath = configurations.ktlint
args 'src/**/*.kt'
args "src/**/*.kt"
}

def getGitHash = { ->
def stdout = new ByteArrayOutputStream()
exec {
commandLine "git", "rev-parse", "HEAD"
standardOutput = stdout
}
return stdout.toString().trim()
}

def getGitBranch = { ->
def stdout = new ByteArrayOutputStream()
exec {
commandLine "git", "rev-parse", "--abbrev-ref", "HEAD"
standardOutput = stdout
}
return stdout.toString().trim()
}

def getGitFilesChanged = { ->
def stdout = new ByteArrayOutputStream()
exec {
commandLine "git", "diff", "--name-only", "HEAD"
standardOutput = stdout
}
return stdout.toString().trim().replace("\n", ", ")
}

task versionTxt() {
doLast {
String resourcesDir = "$projectDir/src/main/resources"
new File("$resourcesDir/branch.txt").text = getGitBranch()
new File("$resourcesDir/commit.txt").text = getGitHash()
new File("$resourcesDir/changes.txt").text = getGitFilesChanged()
new File("$resourcesDir/buildtime.txt").text =
new SimpleDateFormat("dd-MM-yyyy HH:mm:ss").format(new Date())
}
}

wrapper {
gradleVersion = "4.9"
}
3 changes: 2 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#Sun Jul 29 10:52:58 PDT 2018
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.9-all.zip
Loading