Skip to content

Commit

Permalink
Merge pull request #3 from StuyPulse/se/swerve
Browse files Browse the repository at this point in the history
Swerve subsystem and commands
  • Loading branch information
BenG49 authored Dec 1, 2023
2 parents 94f974e + d905c4f commit 70a6147
Show file tree
Hide file tree
Showing 22 changed files with 24,754 additions and 5 deletions.
170 changes: 170 additions & 0 deletions .Glass/glass.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
{
"NetworkTables": {
"Persistent Values": {
"open": false
},
"transitory": {
"SmartDashboard": {
"Odometry": {
"open": true
},
"Swerve": {
"Drive": {
"open": true
},
"Modules": {
"Back Left": {
"open": true
},
"Back Right": {
"open": true
},
"Front Left": {
"open": true
},
"Front Right": {
"open": true
},
"open": true
},
"Turn": {
"open": true
},
"open": true
},
"open": true
}
},
"types": {
"/FMSInfo": "FMSInfo",
"/SmartDashboard/Autonomous": "String Chooser",
"/SmartDashboard/Field": "Field2d"
}
},
"NetworkTables Settings": {
"mode": "Client (NT3)",
"serverTeam": "694"
},
"Plots": {
"Plot <0>": {
"plots": [
{
"height": 474,
"series": [
{
"color": [
0.2980392277240753,
0.44705885648727417,
0.6901960968971252,
1.0
],
"id": "NT:/SmartDashboard/Swerve/Modules/Back Left/Turn Voltage"
}
]
}
],
"window": {
"visible": false
}
},
"Plot <1>": {
"plots": [
{
"height": 769,
"series": [
{
"color": [
0.2980392277240753,
0.44705885648727417,
0.6901960968971252,
1.0
],
"id": "NT:/SmartDashboard/Swerve/Modules/Front Left/Angle"
},
{
"color": [
0.3333333432674408,
0.658823549747467,
0.4078431725502014,
1.0
],
"id": "NT:/SmartDashboard/Swerve/Modules/Back Right/Angle"
},
{
"color": [
0.3333333432674408,
0.658823549747467,
0.4078431725502014,
1.0
],
"id": "NT:/SmartDashboard/Swerve/Modules/Back Left/Angle"
},
{
"color": [
0.7686275243759155,
0.30588236451148987,
0.32156863808631897,
1.0
],
"id": "NT:/SmartDashboard/Swerve/Modules/Front Right/Angle"
},
{
"color": [
0.5058823823928833,
0.44705885648727417,
0.7019608020782471,
1.0
],
"id": "NT:/SmartDashboard/Swerve/Modules/Front Left/Target Angle"
}
]
}
]
},
"Plot <2>": {
"plots": [
{
"height": 726,
"series": [
{
"color": [
0.8666667342185974,
0.5176470875740051,
0.32156863808631897,
1.0
],
"id": "NT:/SmartDashboard/Swerve/Modules/Front Right/Turn Voltage"
},
{
"color": [
0.3333333432674408,
0.658823549747467,
0.4078431725502014,
1.0
],
"id": "NT:/SmartDashboard/Swerve/Modules/Front Left/Turn Voltage"
},
{
"color": [
0.7686275243759155,
0.30588236451148987,
0.32156863808631897,
1.0
],
"id": "NT:/SmartDashboard/Swerve/Modules/Back Right/Turn Voltage"
},
{
"color": [
0.5058823823928833,
0.44705885648727417,
0.7019608020782471,
1.0
],
"id": "NT:/SmartDashboard/Swerve/Modules/Back Left/Turn Voltage"
}
]
}
]
}
}
}
127 changes: 127 additions & 0 deletions simgui.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
{
"NTProvider": {
"types": {
"/FMSInfo": "FMSInfo",
"/LiveWindow/SimModule": "Subsystem",
"/LiveWindow/Ungrouped/Scheduler": "Scheduler",
"/LiveWindow/Ungrouped/navX-Sensor[4]": "Gyro",
"/SmartDashboard/Autonomous": "String Chooser",
"/SmartDashboard/Field": "Field2d"
},
"windows": {
"/SmartDashboard/Autonomous": {
"window": {
"visible": true
}
},
"/SmartDashboard/Field": {
"window": {
"visible": true
}
}
}
},
"NetworkTables": {
"transitory": {
"SmartDashboard": {
"Driver Settings": {
"Turn": {
"open": true
}
},
"Field": {
"open": true
},
"Swerve": {
"Back Left": {
"open": true
},
"Modules": {
"Back Left": {
"open": true
},
"Back Right": {
"open": true
},
"Front Left": {
"open": true
},
"Front Right": {
"open": true
},
"open": true
},
"open": true
},
"open": true
}
}
},
"NetworkTables Info": {
"Clients": {
"open": true
},
"Connections": {
"open": true
},
"Server": {
"open": true
},
"visible": true
},
"Plot": {
"Plot <0>": {
"plots": [
{
"height": 351,
"series": [
{
"color": [
0.2980392277240753,
0.44705885648727417,
0.6901960968971252,
1.0
],
"id": "NT:/SmartDashboard/Swerve/Modules/Back Left/Drive Voltage"
},
{
"color": [
0.8666667342185974,
0.5176470875740051,
0.32156863808631897,
1.0
],
"id": "NT:/SmartDashboard/Swerve/Modules/Back Right/Drive Voltage"
},
{
"color": [
0.3333333432674408,
0.658823549747467,
0.4078431725502014,
1.0
],
"id": "NT:/SmartDashboard/Swerve/Modules/Front Left/Drive Voltage"
},
{
"color": [
0.7686275243759155,
0.30588236451148987,
0.32156863808631897,
1.0
],
"id": "NT:/SmartDashboard/Swerve/Modules/Front Right/Drive Voltage"
}
]
}
],
"window": {
"name": "Drive Voltage"
}
},
"Plot <1>": {
"window": {
"visible": false
}
}
}
}
99 changes: 99 additions & 0 deletions src/main/deploy/pathplanner/DriveAndTurnBump.path
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
{
"waypoints": [
{
"anchorPoint": {
"x": 2.0,
"y": 0.7536650970737852
},
"prevControl": null,
"nextControl": {
"x": 3.0,
"y": 0.7536650970737852
},
"holonomicAngle": 0,
"isReversal": false,
"velOverride": null,
"isLocked": false,
"isStopPoint": false,
"stopEvent": {
"names": [],
"executionBehavior": "parallel",
"waitBehavior": "none",
"waitTime": 0
}
},
{
"anchorPoint": {
"x": 6.0,
"y": 0.75
},
"prevControl": {
"x": 6.0,
"y": 0.7385808318625183
},
"nextControl": {
"x": 6.0,
"y": 0.7614191681374817
},
"holonomicAngle": 0,
"isReversal": false,
"velOverride": null,
"isLocked": false,
"isStopPoint": false,
"stopEvent": {
"names": [],
"executionBehavior": "parallel",
"waitBehavior": "none",
"waitTime": 0
}
},
{
"anchorPoint": {
"x": 6.0,
"y": 0.75
},
"prevControl": {
"x": 6.00681785124254,
"y": 0.7308267607988216
},
"nextControl": {
"x": 6.00681785124254,
"y": 0.7308267607988216
},
"holonomicAngle": 90.0,
"isReversal": true,
"velOverride": null,
"isLocked": false,
"isStopPoint": true,
"stopEvent": {
"names": [],
"executionBehavior": "parallel",
"waitBehavior": "none",
"waitTime": 0
}
},
{
"anchorPoint": {
"x": 6.0,
"y": 3.0
},
"prevControl": {
"x": 6.0,
"y": 2.1185800412541402
},
"nextControl": null,
"holonomicAngle": 90.0,
"isReversal": false,
"velOverride": null,
"isLocked": false,
"isStopPoint": false,
"stopEvent": {
"names": [],
"executionBehavior": "parallel",
"waitBehavior": "none",
"waitTime": 0
}
}
],
"markers": []
}
Loading

0 comments on commit 70a6147

Please sign in to comment.