Skip to content

Commit

Permalink
added some folders to paths and created a source side auto (unfinished)
Browse files Browse the repository at this point in the history
  • Loading branch information
taj-maharj08 committed Feb 29, 2024
1 parent a839c7e commit 08f3c7e
Show file tree
Hide file tree
Showing 17 changed files with 117 additions and 26 deletions.
6 changes: 4 additions & 2 deletions .pathplanner/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@
"robotLength": 0.8254998984,
"holonomicMode": true,
"pathFolders": [
"CenterLine"
"Amp Side",
"Source Side",
"4 Note"
],
"autoFolders": [],
"defaultMaxVel": 3.0,
"defaultMaxAccel": 3.0,
"defaultMaxAngVel": 540.0,
"defaultMaxAngAccel": 720.0,
"maxModuleSpeed": 4.5
}
}
31 changes: 31 additions & 0 deletions src/main/deploy/pathplanner/autos/2 Piece Source.auto
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"version": 1.0,
"startingPose": {
"position": {
"x": 0.6706475505032715,
"y": 4.417916777185551
},
"rotation": 120.90306080687992
},
"command": {
"type": "sequential",
"data": {
"commands": [
{
"type": "path",
"data": {
"pathName": "Sub to Centerline 5"
}
},
{
"type": "path",
"data": {
"pathName": "Centerline 5 to Sub"
}
}
]
}
},
"folder": null,
"choreoAuto": false
}
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"rotateFast": false
},
"reversed": false,
"folder": null,
"folder": "Amp Side",
"previewStartingState": {
"rotation": 33.0,
"velocity": 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"rotateFast": false
},
"reversed": false,
"folder": null,
"folder": "4 Note",
"previewStartingState": {
"rotation": 0.0,
"velocity": 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"rotateFast": false
},
"reversed": false,
"folder": null,
"folder": "Amp Side",
"previewStartingState": null,
"useDefaultConstraints": false
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"rotateFast": false
},
"reversed": false,
"folder": null,
"folder": "4 Note",
"previewStartingState": {
"rotation": -51.06999999999999,
"velocity": 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"rotateFast": false
},
"reversed": false,
"folder": "CenterLine",
"folder": "Amp Side",
"previewStartingState": {
"rotation": 60.59,
"velocity": 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"rotateFast": false
},
"reversed": false,
"folder": "CenterLine",
"folder": "Amp Side",
"previewStartingState": null,
"useDefaultConstraints": false
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@
"waypoints": [
{
"anchor": {
"x": 2.82,
"y": 6.83
"x": 8.288940915446934,
"y": 0.7712119363040817
},
"prevControl": null,
"nextControl": {
"x": 2.7349659785064047,
"y": 6.777603086913342
"x": 6.256286657267324,
"y": 0.7266909127459749
},
"isLocked": false,
"linkedName": null
},
{
"anchor": {
"x": 2.449383782463924,
"y": 6.52392784352681
"x": 0.6472211773226715,
"y": 4.402820011287809
},
"prevControl": {
"x": 2.6420582648037048,
"y": 6.685256698927938
"x": 1.5966289454483753,
"y": 1.4756745662037338
},
"nextControl": null,
"isLocked": false,
Expand All @@ -39,13 +39,13 @@
},
"goalEndState": {
"velocity": 0,
"rotation": 26.97,
"rotation": 120.1,
"rotateFast": false
},
"reversed": false,
"folder": null,
"folder": "Source Side",
"previewStartingState": {
"rotation": 26.97,
"rotation": 180.0,
"velocity": 0
},
"useDefaultConstraints": false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"rotateFast": false
},
"reversed": false,
"folder": null,
"folder": "4 Note",
"previewStartingState": {
"rotation": 34.66,
"velocity": 0
Expand Down
2 changes: 1 addition & 1 deletion src/main/deploy/pathplanner/paths/SpeakerToCenterNote.path
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"rotateFast": false
},
"reversed": false,
"folder": null,
"folder": "Amp Side",
"previewStartingState": {
"rotation": 0,
"velocity": 0
Expand Down
2 changes: 1 addition & 1 deletion src/main/deploy/pathplanner/paths/SpeakerToTopNote.path
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"rotateFast": false
},
"reversed": false,
"folder": null,
"folder": "4 Note",
"previewStartingState": {
"rotation": 0,
"velocity": 0
Expand Down
2 changes: 1 addition & 1 deletion src/main/deploy/pathplanner/paths/Stage to Left Spike.path
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"rotateFast": false
},
"reversed": false,
"folder": null,
"folder": "4 Note",
"previewStartingState": {
"rotation": 0,
"velocity": 0
Expand Down
58 changes: 58 additions & 0 deletions src/main/deploy/pathplanner/paths/Sub to Centerline 5.path
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"version": 1.0,
"waypoints": [
{
"anchor": {
"x": 0.6706475505032715,
"y": 4.417916777185551
},
"prevControl": null,
"nextControl": {
"x": 1.6706475505032712,
"y": 3.9179167771855514
},
"isLocked": false,
"linkedName": null
},
{
"anchor": {
"x": 8.280322113351476,
"y": 0.7715318829617699
},
"prevControl": {
"x": 4.3679372645203625,
"y": 0.3639835754606413
},
"nextControl": null,
"isLocked": false,
"linkedName": null
}
],
"rotationTargets": [
{
"waypointRelativePos": 0.5,
"rotationDegrees": 0,
"rotateFast": false
}
],
"constraintZones": [],
"eventMarkers": [],
"globalConstraints": {
"maxVelocity": 3.0,
"maxAcceleration": 3.0,
"maxAngularVelocity": 540.0,
"maxAngularAcceleration": 720.0
},
"goalEndState": {
"velocity": 0,
"rotation": 0,
"rotateFast": false
},
"reversed": false,
"folder": "Source Side",
"previewStartingState": {
"rotation": 120.1,
"velocity": 0
},
"useDefaultConstraints": false
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"rotateFast": false
},
"reversed": false,
"folder": "CenterLine",
"folder": "Amp Side",
"previewStartingState": {
"rotation": 26.97,
"velocity": 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"rotateFast": false
},
"reversed": false,
"folder": "CenterLine",
"folder": "Amp Side",
"previewStartingState": {
"rotation": 26.97,
"velocity": 0
Expand Down
2 changes: 1 addition & 1 deletion src/main/deploy/pathplanner/paths/TopNoteToCenterNote.path
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"rotateFast": false
},
"reversed": false,
"folder": null,
"folder": "4 Note",
"previewStartingState": {
"rotation": -34.31999999999999,
"velocity": 0
Expand Down

0 comments on commit 08f3c7e

Please sign in to comment.