Skip to content

Commit

Permalink
Auto path changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ProgrammingSR committed Mar 22, 2024
1 parent 0844af8 commit 974a416
Show file tree
Hide file tree
Showing 8 changed files with 218 additions and 40 deletions.
75 changes: 75 additions & 0 deletions src/main/deploy/pathplanner/autos/1+0.5-SourceSide-Leave.auto
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
"version": 1.0,
"startingPose": {
"position": {
"x": 0.8,
"y": 4.4
},
"rotation": -60.0
},
"command": {
"type": "sequential",
"data": {
"commands": [
{
"type": "named",
"data": {
"name": "Shoot"
}
},
{
"type": "parallel",
"data": {
"commands": [
{
"type": "named",
"data": {
"name": "Intake"
}
},
{
"type": "path",
"data": {
"pathName": "Middle5thNote"
}
}
]
}
},
{
"type": "named",
"data": {
"name": "Intake in"
}
},
{
"type": "parallel",
"data": {
"commands": [
{
"type": "named",
"data": {
"name": "Prep-Speed - 60%"
}
},
{
"type": "path",
"data": {
"pathName": "5thNote-Back"
}
}
]
}
},
{
"type": "named",
"data": {
"name": "Outtake"
}
}
]
}
},
"folder": null,
"choreoAuto": false
}
8 changes: 4 additions & 4 deletions src/main/deploy/pathplanner/autos/1-AmpSide-Leave.auto
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
"version": 1.0,
"startingPose": {
"position": {
"x": 0.7516461186768542,
"y": 4.35
"x": 0.75,
"y": 6.75
},
"rotation": -60.0
"rotation": 60.0
},
"command": {
"type": "sequential",
Expand All @@ -24,7 +24,7 @@
{
"type": "path",
"data": {
"pathName": "MoveOut-Right"
"pathName": "MoveOut-Left"
}
}
]
Expand Down
17 changes: 8 additions & 9 deletions src/main/deploy/pathplanner/autos/2-Center-Stays.auto
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,20 @@
"name": "Shoot"
}
},
{
"type": "named",
"data": {
"name": "Intake out"
}
},
{
"type": "deadline",
"data": {
"commands": [
{
"type": "sequential",
"type": "path",
"data": {
"commands": [
{
"type": "path",
"data": {
"pathName": "CenterNote-Center"
}
}
]
"pathName": "CenterNote-Center"
}
},
{
Expand Down
12 changes: 0 additions & 12 deletions src/main/deploy/pathplanner/autos/2-SourceSide-Leave.auto
Original file line number Diff line number Diff line change
Expand Up @@ -32,22 +32,10 @@
"data": {
"name": "Intake"
}
},
{
"type": "named",
"data": {
"name": "Reset Distance Sensor"
}
}
]
}
},
{
"type": "named",
"data": {
"name": "Reset Distance Sensor"
}
},
{
"type": "named",
"data": {
Expand Down
52 changes: 52 additions & 0 deletions src/main/deploy/pathplanner/paths/5thNote-Back.path
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"version": 1.0,
"waypoints": [
{
"anchor": {
"x": 8.0,
"y": 0.75
},
"prevControl": null,
"nextControl": {
"x": 7.346710693421388,
"y": 1.0261620523241057
},
"isLocked": false,
"linkedName": null
},
{
"anchor": {
"x": 5.0,
"y": 1.25
},
"prevControl": {
"x": 5.436099261932909,
"y": 0.6271857083288086
},
"nextControl": null,
"isLocked": false,
"linkedName": null
}
],
"rotationTargets": [],
"constraintZones": [],
"eventMarkers": [],
"globalConstraints": {
"maxVelocity": 3.0,
"maxAcceleration": 3.0,
"maxAngularVelocity": 540.0,
"maxAngularAcceleration": 720.0
},
"goalEndState": {
"velocity": 0,
"rotation": -30.0,
"rotateFast": false
},
"reversed": false,
"folder": null,
"previewStartingState": {
"rotation": 0,
"velocity": 0
},
"useDefaultConstraints": true
}
58 changes: 58 additions & 0 deletions src/main/deploy/pathplanner/paths/Middle5thNote.path
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"version": 1.0,
"waypoints": [
{
"anchor": {
"x": 0.8,
"y": 4.4
},
"prevControl": null,
"nextControl": {
"x": 1.3209445330007905,
"y": 1.4455767409633768
},
"isLocked": false,
"linkedName": null
},
{
"anchor": {
"x": 8.0,
"y": 0.75
},
"prevControl": {
"x": 7.0,
"y": 0.75
},
"nextControl": null,
"isLocked": false,
"linkedName": null
}
],
"rotationTargets": [
{
"waypointRelativePos": 0.85,
"rotationDegrees": 0,
"rotateFast": false
}
],
"constraintZones": [],
"eventMarkers": [],
"globalConstraints": {
"maxVelocity": 3.0,
"maxAcceleration": 3.0,
"maxAngularVelocity": 540.0,
"maxAngularAcceleration": 720.0
},
"goalEndState": {
"velocity": 0,
"rotation": 0.0,
"rotateFast": false
},
"reversed": false,
"folder": null,
"previewStartingState": {
"rotation": -60.067304943288455,
"velocity": 0
},
"useDefaultConstraints": true
}
24 changes: 15 additions & 9 deletions src/main/deploy/pathplanner/paths/MoveOut-Left.path
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,24 @@
},
"prevControl": null,
"nextControl": {
"x": 1.9850139700279412,
"y": 7.637013735565933
"x": 1.9683280647280124,
"y": 7.625029557612825
},
"isLocked": false,
"linkedName": null
},
{
"anchor": {
"x": 4.589886872086828,
"y": 7.114065766591227
"x": 3.45,
"y": 7.5
},
"prevControl": {
"x": 3.029411851614082,
"y": 7.114065766591227
"x": 1.9500000000000002,
"y": 7.5
},
"nextControl": {
"x": 6.150361892559576,
"y": 7.114065766591227
"x": 4.950000000000003,
"y": 7.5
},
"isLocked": false,
"linkedName": null
Expand All @@ -44,7 +44,13 @@
"linkedName": null
}
],
"rotationTargets": [],
"rotationTargets": [
{
"waypointRelativePos": 0.5,
"rotationDegrees": 0,
"rotateFast": false
}
],
"constraintZones": [],
"eventMarkers": [],
"globalConstraints": {
Expand Down
12 changes: 6 additions & 6 deletions src/main/deploy/pathplanner/paths/Straight-Back.path
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@
"waypoints": [
{
"anchor": {
"x": 1.55744644822623,
"y": 6.0
"x": 0.75,
"y": 3.0
},
"prevControl": null,
"nextControl": {
"x": 2.557446448226229,
"y": 6.0
"x": 1.7500000000000013,
"y": 3.0
},
"isLocked": false,
"linkedName": null
},
{
"anchor": {
"x": 4.0,
"y": 6.0
"y": 3.0
},
"prevControl": {
"x": 3.0,
"y": 6.0
"y": 3.0
},
"nextControl": null,
"isLocked": false,
Expand Down

0 comments on commit 974a416

Please sign in to comment.