Skip to content

Commit

Permalink
Merge pull request #43 from TitaniumTitans/GearFox-AddAdkitAgain
Browse files Browse the repository at this point in the history
Add back AdvantageKit to code and initial tuning for autos and driver practice.
  • Loading branch information
GearBoxFox authored Mar 11, 2024
2 parents 91183a1 + 4eaa404 commit 4d1c128
Show file tree
Hide file tree
Showing 110 changed files with 8,833 additions and 2,304 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -175,4 +175,5 @@ simgui*.json
src/main/java/frc/robot/BuildConstants.java

# sim files
ctre_sim
ctre_sim
logs
12 changes: 12 additions & 0 deletions .pathplanner/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"robotWidth": 0.9,
"robotLength": 0.9,
"holonomicMode": true,
"pathFolders": [],
"autoFolders": [],
"defaultMaxVel": 3.0,
"defaultMaxAccel": 3.0,
"defaultMaxAngVel": 540.0,
"defaultMaxAngAccel": 720.0,
"maxModuleSpeed": 4.5
}
750 changes: 750 additions & 0 deletions 2024Crescendo.chor

Large diffs are not rendered by default.

2,246 changes: 2,246 additions & 0 deletions Crescendo2024.chor

Large diffs are not rendered by default.

49 changes: 42 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ plugins {
id "java"
id "edu.wpi.first.GradleRIO" version "2024.3.1"
id "org.sonarqube" version "4.4.1.3373"
id "com.peterabeles.gversion" version "1.10"
}

java {
Expand All @@ -11,6 +12,27 @@ java {

def ROBOT_MAIN_CLASS = "frc.robot.Main"

repositories {
maven {
url = uri("https://maven.pkg.github.com/Mechanical-Advantage/AdvantageKit")
credentials {
username = "Mechanical-Advantage-Bot"
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"
}
}
mavenLocal()
}

configurations.all {
exclude group: "edu.wpi.first.wpilibj"
}

task(checkAkitInstall, dependsOn: "classes", type: JavaExec) {
mainClass = "org.littletonrobotics.junction.CheckInstall"
classpath = sourceSets.main.runtimeClasspath
}
compileJava.finalizedBy checkAkitInstall

// Define my targets (RoboRIO) and artifacts (deployable files)
// This is added by GradleRIO's backing project DeployUtils.
deploy {
Expand All @@ -29,12 +51,12 @@ deploy {

frcJava(getArtifactTypeClass('FRCJavaArtifact')) {
// Enable VisualVM connection
jvmArgs.add("-Dcom.sun.management.jmxremote=true")
jvmArgs.add("-Dcom.sun.management.jmxremote.port=1198")
jvmArgs.add("-Dcom.sun.management.jmxremote.local.only=false")
jvmArgs.add("-Dcom.sun.management.jmxremote.ssl=false")
jvmArgs.add("-Dcom.sun.management.jmxremote.authenticate=false")
jvmArgs.add("-Djava.rmi.server.hostname=10.44.67.2") // Replace XX.XX with team number
// jvmArgs.add("-Dcom.sun.management.jmxremote=true")
// jvmArgs.add("-Dcom.sun.management.jmxremote.port=1198")
// jvmArgs.add("-Dcom.sun.management.jmxremote.local.only=false")
// jvmArgs.add("-Dcom.sun.management.jmxremote.ssl=false")
// jvmArgs.add("-Dcom.sun.management.jmxremote.authenticate=false")
// jvmArgs.add("-Djava.rmi.server.hostname=10.44.67.2") // Replace XX.XX with team number
}

// Static files artifact
Expand Down Expand Up @@ -76,6 +98,9 @@ dependencies {
simulationRelease wpi.sim.enableRelease()

implementation 'gov.nist.math:jama:1.0.3'

def akitJson = new groovy.json.JsonSlurper().parseText(new File(projectDir.getAbsolutePath() + "/vendordeps/AdvantageKit.json").text)
annotationProcessor "org.littletonrobotics.akit.junction:junction-autolog:$akitJson.version"
}

test {
Expand Down Expand Up @@ -115,10 +140,20 @@ deployArtifact.jarTask = jar
wpi.java.configureExecutableTasks(jar)
wpi.java.configureTestTasks(test)

// Create version file
project.compileJava.dependsOn(createVersionFile)
gversion {
srcDir = "src/main/java/"
classPackage = "frc.robot"
className = "BuildConstants"
dateFormat = "yyyy-MM-dd HH:mm:ss z"
timeZone = "America/New_York"
indent = " "
}

// Configure string concat to always inline compile
tasks.withType(JavaCompile) {
options.compilerArgs.add '-XDstringConcat=inline'

}


Binary file modified ctre_sim/Talon FX vers. C - 01 - 0 - ext.dat
Binary file not shown.
Binary file modified ctre_sim/Talon FX vers. C - 010 - 0 - ext.dat
Binary file not shown.
Binary file modified ctre_sim/Talon FX vers. C - 016 - 0 - ext.dat
Binary file not shown.
Binary file modified ctre_sim/Talon FX vers. C - 017 - 0 - ext.dat
Binary file not shown.
Binary file modified ctre_sim/Talon FX vers. C - 04 - 0 - ext.dat
Binary file not shown.
Binary file modified ctre_sim/Talon FX vers. C - 07 - 0 - ext.dat
Binary file not shown.
Binary file added logs/FRC_20240310_203436.wpilog
Binary file not shown.
Binary file added logs/FRC_20240310_203649.wpilog
Binary file not shown.
Binary file added logs/FRC_20240310_221225.wpilog
Binary file not shown.
Binary file added logs/FRC_20240310_221327.wpilog
Binary file not shown.
Binary file added logs/FRC_20240310_221513.wpilog
Binary file not shown.
Binary file added logs/FRC_20240310_221546.wpilog
Binary file not shown.
Binary file added logs/FRC_20240310_221717.wpilog
Binary file not shown.
Binary file added logs/FRC_20240310_221825.wpilog
Binary file not shown.
Binary file added logs/FRC_20240310_221848.wpilog
Binary file not shown.
Binary file added logs/FRC_20240310_222046.wpilog
Binary file not shown.
Binary file added logs/FRC_20240310_222123.wpilog
Binary file not shown.
Binary file added logs/FRC_20240310_222300.wpilog
Binary file not shown.
Binary file added logs/FRC_20240310_222316.wpilog
Binary file not shown.
Binary file added logs/FRC_20240310_222414.wpilog
Binary file not shown.
Binary file added logs/FRC_20240310_222606.wpilog
Binary file not shown.
Binary file added logs/FRC_20240310_222655.wpilog
Binary file not shown.
Binary file added logs/FRC_20240310_222707.wpilog
Binary file not shown.
Binary file added logs/FRC_20240310_222808.wpilog
Binary file not shown.
Binary file added logs/FRC_20240310_222820.wpilog
Binary file not shown.
Binary file added logs/FRC_20240310_222837.wpilog
Binary file not shown.
Binary file added logs/FRC_20240310_222944.wpilog
Binary file not shown.
Binary file added logs/FRC_20240310_223012.wpilog
Binary file not shown.
Binary file added logs/FRC_20240310_223030.wpilog
Binary file not shown.
Binary file added logs/FRC_20240310_223043.wpilog
Binary file not shown.
Binary file added logs/FRC_20240310_223255.wpilog
Binary file not shown.
Binary file added logs/FRC_20240310_223342.wpilog
Binary file not shown.
Binary file added logs/FRC_20240310_223413.wpilog
Binary file not shown.
Binary file added logs/FRC_20240310_223523.wpilog
Binary file not shown.
Binary file added logs/FRC_20240310_223729.wpilog
Binary file not shown.
Binary file added logs/FRC_20240310_223759.wpilog
Binary file not shown.
Binary file added logs/FRC_20240310_223939.wpilog
Binary file not shown.
Binary file added logs/FRC_20240310_224020.wpilog
Binary file not shown.
Binary file added logs/FRC_20240310_233720.wpilog
Binary file not shown.
Binary file added logs/FRC_20240310_233831.wpilog
Binary file not shown.
Binary file added logs/FRC_20240310_234038.wpilog
Binary file not shown.
Binary file added logs/FRC_20240311_001406.wpilog
Binary file not shown.
Binary file added logs/FRC_20240311_001514.wpilog
Binary file not shown.
Binary file added logs/FRC_20240311_001544.wpilog
Binary file not shown.
Binary file added logs/FRC_20240311_001637.wpilog
Binary file not shown.
Binary file added logs/FRC_20240311_001653.wpilog
Binary file not shown.
Binary file added logs/FRC_20240311_001744.wpilog
Binary file not shown.
Binary file added logs/FRC_20240311_001807.wpilog
Binary file not shown.
Binary file added logs/FRC_20240311_001902.wpilog
Binary file not shown.
Binary file added logs/sim_2024-03-10_16-34-27.hoot
Binary file not shown.
Loading

0 comments on commit 4d1c128

Please sign in to comment.