Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto generation tests #198

Closed
wants to merge 81 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
225fe74
Changed constants to offseason
mmilunicmobile Dec 24, 2024
eb060c2
Updated configs for the offseason robot.
mmilunicmobile Dec 24, 2024
9d4aef3
Merge branch 'main' into offseason-base
mmilunicmobile Dec 28, 2024
8af96fc
added some sysid values (#42)
mmilunicmobile Dec 30, 2024
204949d
New wheel radius, other robot config values (#43)
rechsby Dec 30, 2024
1fbb2c4
Merge remote-tracking branch 'origin/main' into offseason-base
Dec 30, 2024
6cc650e
Merge remote-tracking branch 'origin/main' into offseason-base
Dec 31, 2024
c1723e7
Merge remote-tracking branch 'origin/main' into offseason-base
Dec 31, 2024
e642acc
Auto value updates (#49)
rechsby Dec 31, 2024
779f4eb
Merge remote-tracking branch 'origin/main' into offseason-base
krypto-bot-2539[bot] Dec 31, 2024
7680536
Merge remote-tracking branch 'origin/main' into offseason-base
krypto-bot-2539[bot] Dec 31, 2024
87ad79a
Merge remote-tracking branch 'origin/main' into offseason-base
krypto-bot-2539[bot] Jan 5, 2025
9ea4f1f
Merge remote-tracking branch 'origin/main' into offseason-base
krypto-bot-2539[bot] Jan 7, 2025
07ffb61
Merge remote-tracking branch 'origin/main' into offseason-base
krypto-bot-2539[bot] Jan 9, 2025
7f5abb8
Merge remote-tracking branch 'origin/main' into offseason-base
krypto-bot-2539[bot] Jan 10, 2025
4d8934a
Merge remote-tracking branch 'origin/main' into offseason-base
krypto-bot-2539[bot] Jan 10, 2025
fd850f3
Merge remote-tracking branch 'origin/main' into offseason-base
krypto-bot-2539[bot] Jan 10, 2025
b3f3b07
Merge remote-tracking branch 'origin/main' into offseason-base
krypto-bot-2539[bot] Jan 10, 2025
eeeacbf
Merge remote-tracking branch 'origin/main' into offseason-base
krypto-bot-2539[bot] Jan 10, 2025
2fe1888
Merge remote-tracking branch 'origin/main' into offseason-base
krypto-bot-2539[bot] Jan 10, 2025
67b9407
Merge remote-tracking branch 'origin/main' into offseason-base
krypto-bot-2539[bot] Jan 10, 2025
918ee87
Merge remote-tracking branch 'origin/main' into offseason-base
krypto-bot-2539[bot] Jan 10, 2025
b12eb06
Merge remote-tracking branch 'origin/main' into offseason-base
krypto-bot-2539[bot] Jan 10, 2025
9bfdbb3
Merge remote-tracking branch 'origin/main' into offseason-base
krypto-bot-2539[bot] Jan 10, 2025
8e291e0
Merge remote-tracking branch 'origin/main' into offseason-base
krypto-bot-2539[bot] Jan 10, 2025
aa97b46
Merge remote-tracking branch 'origin/main' into offseason-base
krypto-bot-2539[bot] Jan 12, 2025
393830d
Merge remote-tracking branch 'origin/main' into offseason-base
krypto-bot-2539[bot] Jan 12, 2025
5178712
Merge remote-tracking branch 'origin/main' into offseason-base
krypto-bot-2539[bot] Jan 12, 2025
6e1e939
Merge branch 'main' into offseason-base
mmilunicmobile Jan 15, 2025
4e49398
Fixed build error and spotless error
mmilunicmobile Jan 15, 2025
602960a
Merge remote-tracking branch 'origin/main' into offseason-base
krypto-bot-2539[bot] Jan 16, 2025
ef9257a
Merge branch 'main' into offseason-base
mmilunicmobile Jan 17, 2025
f37532b
Merge remote-tracking branch 'origin/main' into offseason-base
krypto-bot-2539[bot] Jan 17, 2025
55081fc
Merge remote-tracking branch 'origin/main' into offseason-base
krypto-bot-2539[bot] Jan 18, 2025
be32811
Merge remote-tracking branch 'origin/main' into offseason-base
krypto-bot-2539[bot] Jan 18, 2025
682a2dc
Merge branch 'main' into offseason-base
mmilunicmobile Jan 18, 2025
721e47f
yay (#100)
mmilunicmobile Jan 18, 2025
9d05ae8
Merge remote-tracking branch 'origin/main' into offseason-base
krypto-bot-2539[bot] Jan 18, 2025
7e45ccb
Merge remote-tracking branch 'origin/main' into offseason-base
krypto-bot-2539[bot] Jan 20, 2025
0901363
Merge remote-tracking branch 'origin/main' into offseason-base
krypto-bot-2539[bot] Jan 20, 2025
b792277
Merge branch 'main' into offseason-base
mmilunicmobile Jan 22, 2025
f1ecdc4
Merge remote-tracking branch 'origin/main' into offseason-base
krypto-bot-2539[bot] Jan 23, 2025
ad2744d
Merge remote-tracking branch 'origin/main' into offseason-base
krypto-bot-2539[bot] Jan 23, 2025
9b8d966
Merge remote-tracking branch 'origin/main' into offseason-base
krypto-bot-2539[bot] Jan 24, 2025
995c24c
Merge branch 'main' into offseason-base
mmilunicmobile Jan 27, 2025
93776cf
Merge remote-tracking branch 'origin/main' into offseason-base
krypto-bot-2539[bot] Jan 27, 2025
5f8d753
Merge remote-tracking branch 'origin/main' into offseason-base
krypto-bot-2539[bot] Jan 28, 2025
9cf9ec3
Merge remote-tracking branch 'origin/main' into offseason-base
krypto-bot-2539[bot] Jan 28, 2025
8a300dd
replace w dummy cameras (#135)
Unciaur Jan 28, 2025
6c65ced
Merge branch 'main' into offseason-base
mmilunicmobile Jan 29, 2025
f75aa73
Merge remote-tracking branch 'origin/main' into offseason-base
krypto-bot-2539[bot] Jan 29, 2025
6aacf78
Merge remote-tracking branch 'origin/main' into offseason-base
krypto-bot-2539[bot] Jan 29, 2025
ac6b046
Merge remote-tracking branch 'origin/main' into offseason-base
krypto-bot-2539[bot] Jan 29, 2025
b64f7a7
Merge remote-tracking branch 'origin/main' into offseason-base
krypto-bot-2539[bot] Jan 30, 2025
464d390
Merge remote-tracking branch 'origin/main' into offseason-base
krypto-bot-2539[bot] Jan 31, 2025
c59fcc3
Merge remote-tracking branch 'origin/main' into offseason-base
krypto-bot-2539[bot] Jan 31, 2025
8073570
Paths from thursday
rechsby Feb 1, 2025
06e8773
Merge remote-tracking branch 'origin/main' into offseason-base
krypto-bot-2539[bot] Feb 1, 2025
27626e7
Merge remote-tracking branch 'origin/main' into offseason-base
krypto-bot-2539[bot] Feb 1, 2025
6ac5b5e
Merge remote-tracking branch 'origin/main' into offseason-base
krypto-bot-2539[bot] Feb 1, 2025
599a658
paths am i right
rechsby Feb 1, 2025
e4b3512
Merge main into auto branch (#160)
rechsby Feb 1, 2025
0f7f8ca
Merge remote-tracking branch 'origin/main' into offseason-base
krypto-bot-2539[bot] Feb 1, 2025
f90b2a1
Merge remote-tracking branch 'origin/main' into offseason-base
krypto-bot-2539[bot] Feb 1, 2025
f1afe5f
Paths from thursday
rechsby Feb 1, 2025
f26e662
paths am i right
rechsby Feb 1, 2025
e71b7b0
Merge branch 'adding-auto-paths' of https://github.com/FRC2539/javabo…
rechsby Feb 1, 2025
947601f
Merge remote-tracking branch 'origin/main' into offseason-base
krypto-bot-2539[bot] Feb 2, 2025
947ee1b
Merge remote-tracking branch 'origin/main' into offseason-base
krypto-bot-2539[bot] Feb 4, 2025
7303946
monday code (also pathplanner settings)
rechsby Feb 4, 2025
2f07461
okay y'all thats my bad i forgot to uncomment that
rechsby Feb 4, 2025
cdb7d68
oh thank god it all actually works
rechsby Feb 5, 2025
82c7593
final path changes
rechsby Feb 6, 2025
ee9bec2
format
rechsby Feb 6, 2025
8a71912
Merge remote-tracking branch 'origin/main' into offseason-base
krypto-bot-2539[bot] Feb 6, 2025
966933c
auto naming
rechsby Feb 6, 2025
daac56e
Merge branch 'offseason-base' into adding-auto-paths
rechsby Feb 6, 2025
e0f701e
autos be like
rechsby Feb 6, 2025
7805a46
hmmmmm, very cool
mmilunicmobile Feb 6, 2025
2e7ba4a
Refactored to be nicer.
mmilunicmobile Feb 7, 2025
a281087
yay this is solid
mmilunicmobile Feb 9, 2025
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
5 changes: 5 additions & 0 deletions .DataLogTool/datalogtool.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"download": {
"serverTeam": "2539"
}
}
9 changes: 9 additions & 0 deletions .SysId/sysid.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"SysId": {
"Data Selector": {
"window": {
"visible": false
}
}
}
}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -184,3 +184,6 @@ ctre_sim/
# clangd
/.cache
compile_commands.json

# paths
src/main/deploy/pathplanner/paths
29 changes: 28 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,34 @@ deploy {
// getTargetTypeClass is a shortcut to get the class type using a string

frcJava(getArtifactTypeClass('FRCJavaArtifact')) {

// Advantage Kit suggestions
jvmArgs.add("-XX:+UnlockExperimentalVMOptions")
jvmArgs.add("-XX:GCTimeRatio=5")
jvmArgs.add("-XX:+UseSerialGC")
jvmArgs.add("-XX:MaxGCPauseMillis=50")

// The options below may improve performance, but should only be enabled on the RIO 2

final MAX_JAVA_HEAP_SIZE_MB = 100;
jvmArgs.add("-Xmx" + MAX_JAVA_HEAP_SIZE_MB + "M")
jvmArgs.add("-Xms" + MAX_JAVA_HEAP_SIZE_MB + "M")
jvmArgs.add("-XX:+AlwaysPreTouch")

// 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.25.39.2") // Replace TE.AM with team number
}

// Static files artifact
frcStaticFileDeploy(getArtifactTypeClass('FileTreeArtifact')) {
files = project.fileTree('src/main/deploy')
directory = '/home/lvuser/deploy'
deleteOldFiles = true
}
}
}
Expand All @@ -54,7 +76,12 @@ task(replayWatch, type: JavaExec) {
classpath = sourceSets.main.runtimeClasspath
}

def simGUI

task(generateTrajectories, type: JavaExec) {
mainClass = "frc.robot.auto.AutoGenerators"
classpath = sourceSets.main.runtimeClasspath
}

// Defining my dependencies. In this case, WPILib (+ friends), and vendor libraries.
// Also defines JUnit 5.
Expand Down Expand Up @@ -90,7 +117,7 @@ test {
}

// Simulation configuration (e.g. environment variables).
wpi.sim.addGui().defaultEnabled = true
simGUI = wpi.sim.addGui().defaultEnabled = false
wpi.sim.addDriverstation()

// Setting up my Jar File. In this case, adding all libraries into the main jar ('fat jar')
Expand Down
97 changes: 47 additions & 50 deletions src/main/deploy/choreo/QuarterSprint.traj

Large diffs are not rendered by default.

219 changes: 1 addition & 218 deletions src/main/deploy/choreo/Spinny Path.traj

Large diffs are not rendered by default.

44 changes: 24 additions & 20 deletions src/main/deploy/choreo/autos.chor
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name":"autos",
"version":"v2025.0.0",
"version":1,
"type":"Swerve",
"variables":{
"expressions":{},
Expand Down Expand Up @@ -28,41 +28,45 @@
}
},
"mass":{
"exp":"74.088 kg",
"val":74.088
"exp":"44 kg",
"val":44.0
},
"inertia":{
"exp":"6.883 kg m ^ 2",
"val":6.883
"exp":"4 kg m ^ 2",
"val":4.0
},
"gearing":{
"exp":"6.75",
"val":6.75
"exp":"6.746",
"val":6.746
},
"radius":{
"exp":"2 in",
"val":0.0508
"exp":"0.049 m",
"val":0.049
},
"vmax":{
"exp":"485.89966375522135 rad / s",
"val":485.8996637552213
"exp":"4600 rpm",
"val":481.71087355043494
},
"tmax":{
"exp":"1.163975155279503 N m",
"val":1.163975155279503
"exp":"0.2 N * m",
"val":0.2
},
"cof":{
"exp":"1",
"val":1.0
},
"bumper":{
"front":{
"exp":"0.457 m",
"val":0.457
"exp":"0.921 / 2 m",
"val":0.4605
},
"side":{
"exp":"0.457 m",
"val":0.457
"exp":"0.921 / 2 m",
"val":0.4605
},
"back":{
"exp":"0.457 m",
"val":0.457
"exp":"0.921 / 2 m",
"val":0.4605
}
},
"differentialTrackWidth":{
Expand All @@ -71,4 +75,4 @@
}
},
"generationFeatures":[]
}
}
192 changes: 192 additions & 0 deletions src/main/deploy/choreo/help.traj

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,13 @@
{
"type": "path",
"data": {
"pathName": "1M"
"pathName": "CenterLeftStart-H"
}
},
{
"type": "path",
"data": {
"pathName": "H-SourceLeft"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
{
"type": "path",
"data": {
"pathName": "Half-Field Sprint"
"pathName": "SourceRight-D"
}
},
{
"type": "named",
"type": "path",
"data": {
"name": "height L4"
"pathName": null
}
}
]
Expand Down
127 changes: 127 additions & 0 deletions src/main/deploy/pathplanner/autos/Screaming Internally.auto
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
{
"version": "2025.0",
"command": {
"type": "sequential",
"data": {
"commands": [
{
"type": "path",
"data": {
"pathName": "RStart-E"
}
},
{
"type": "named",
"data": {
"name": "location E"
}
},
{
"type": "named",
"data": {
"name": "height L1"
}
},
{
"type": "named",
"data": {
"name": "place"
}
},
{
"type": "path",
"data": {
"pathName": "E-CS2"
}
},
{
"type": "path",
"data": {
"pathName": "CS2-D"
}
},
{
"type": "named",
"data": {
"name": "location D"
}
},
{
"type": "named",
"data": {
"name": "height L1"
}
},
{
"type": "named",
"data": {
"name": "place"
}
},
{
"type": "path",
"data": {
"pathName": "D-CS2"
}
},
{
"type": "path",
"data": {
"pathName": "CS2-C"
}
},
{
"type": "named",
"data": {
"name": "location C"
}
},
{
"type": "named",
"data": {
"name": "height L1"
}
},
{
"type": "named",
"data": {
"name": "place"
}
},
{
"type": "path",
"data": {
"pathName": "C-CS2"
}
},
{
"type": "path",
"data": {
"pathName": "CS2-B"
}
},
{
"type": "named",
"data": {
"name": "location B"
}
},
{
"type": "named",
"data": {
"name": "height L1"
}
},
{
"type": "named",
"data": {
"name": "place"
}
}
]
}
},
"resetOdom": true,
"folder": null,
"choreoAuto": false
}

This file was deleted.

19 changes: 0 additions & 19 deletions src/main/deploy/pathplanner/autos/Test Choreo Auto.auto

This file was deleted.

Loading