Skip to content

Commit

Permalink
test path
Browse files Browse the repository at this point in the history
  • Loading branch information
davidchen20 committed Feb 27, 2024
1 parent d25648f commit 8246d92
Show file tree
Hide file tree
Showing 12 changed files with 455 additions and 37 deletions.
43 changes: 43 additions & 0 deletions src/main/deploy/pathplanner/autos/New Auto.auto
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"version": 1.0,
"startingPose": {
"position": {
"x": 1.4055808813372015,
"y": 5.573706936887558
},
"rotation": 0
},
"command": {
"type": "sequential",
"data": {
"commands": [
{
"type": "path",
"data": {
"pathName": "preload b2"
}
},
{
"type": "path",
"data": {
"pathName": "b2b3"
}
},
{
"type": "path",
"data": {
"pathName": "b3b1"
}
},
{
"type": "path",
"data": {
"pathName": "b3"
}
}
]
}
},
"folder": null,
"choreoAuto": false
}
109 changes: 109 additions & 0 deletions src/main/deploy/pathplanner/paths/b2b3.path
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
{
"version": 1.0,
"waypoints": [
{
"anchor": {
"x": 2.80209349892384,
"y": 5.57
},
"prevControl": null,
"nextControl": {
"x": 2.185451563885584,
"y": 4.957065001849302
},
"isLocked": false,
"linkedName": "end of path 1"
},
{
"anchor": {
"x": 2.185451563885584,
"y": 4.630607506829048
},
"prevControl": {
"x": 2.0513192630447885,
"y": 4.80199878012562
},
"nextControl": {
"x": 2.348680311395711,
"y": 4.422037440566109
},
"isLocked": false,
"linkedName": null
},
{
"anchor": {
"x": 2.5209773226564,
"y": 4.403900913064984
},
"prevControl": {
"x": 2.2670659376406475,
"y": 4.485515286820048
},
"nextControl": null,
"isLocked": false,
"linkedName": "end of path 2"
}
],
"rotationTargets": [],
"constraintZones": [],
"eventMarkers": [
{
"name": "stop intake and feeders",
"waypointRelativePos": 0,
"command": {
"type": "parallel",
"data": {
"commands": []
}
}
},
{
"name": "shoot note",
"waypointRelativePos": 0,
"command": {
"type": "sequential",
"data": {
"commands": []
}
}
},
{
"name": "run intake and feeders",
"waypointRelativePos": 1.65,
"command": {
"type": "parallel",
"data": {
"commands": []
}
}
},
{
"name": "pivot shooter to shoot angle",
"waypointRelativePos": 0,
"command": {
"type": "parallel",
"data": {
"commands": []
}
}
}
],
"globalConstraints": {
"maxVelocity": 3.0,
"maxAcceleration": 3.0,
"maxAngularVelocity": 540.0,
"maxAngularAcceleration": 720.0
},
"goalEndState": {
"velocity": 0,
"rotation": -38.99099404250551,
"rotateFast": false
},
"reversed": false,
"folder": null,
"previewStartingState": {
"rotation": 0,
"velocity": 0
},
"useDefaultConstraints": true
}
73 changes: 73 additions & 0 deletions src/main/deploy/pathplanner/paths/b3.path
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{
"version": 1.0,
"waypoints": [
{
"anchor": {
"x": 2.5209773226564,
"y": 6.689103378206757
},
"prevControl": null,
"nextControl": {
"x": 2.4847042676541498,
"y": 6.181280608175252
},
"isLocked": false,
"linkedName": "end of path 3"
},
{
"anchor": {
"x": 2.3940216301485235,
"y": 5.473956035631369
},
"prevControl": {
"x": 2.4484312126518994,
"y": 6.4986698394449425
},
"nextControl": null,
"isLocked": false,
"linkedName": null
}
],
"rotationTargets": [],
"constraintZones": [],
"eventMarkers": [
{
"name": "pivot shooter to shoot angle",
"waypointRelativePos": 1.0,
"command": {
"type": "parallel",
"data": {
"commands": []
}
}
},
{
"name": "shoot",
"waypointRelativePos": 1.0,
"command": {
"type": "sequential",
"data": {
"commands": []
}
}
}
],
"globalConstraints": {
"maxVelocity": 3.0,
"maxAcceleration": 3.0,
"maxAngularVelocity": 540.0,
"maxAngularAcceleration": 720.0
},
"goalEndState": {
"velocity": 0,
"rotation": 0,
"rotateFast": false
},
"reversed": false,
"folder": null,
"previewStartingState": {
"rotation": 39.9203921399854,
"velocity": 0
},
"useDefaultConstraints": true
}
115 changes: 115 additions & 0 deletions src/main/deploy/pathplanner/paths/b3b1.path
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
{
"version": 1.0,
"waypoints": [
{
"anchor": {
"x": 2.5209773226564,
"y": 4.403900913064984
},
"prevControl": null,
"nextControl": {
"x": 1.7864479588608302,
"y": 4.993338056851552
},
"isLocked": false,
"linkedName": "end of path 2"
},
{
"anchor": {
"x": 1.9315401788698316,
"y": 5.519297354384182
},
"prevControl": {
"x": 1.8252489348567498,
"y": 5.046301318525968
},
"nextControl": {
"x": 2.1129054538810834,
"y": 6.326372828184253
},
"isLocked": false,
"linkedName": null
},
{
"anchor": {
"x": 2.5209773226564,
"y": 6.689103378206757
},
"prevControl": {
"x": 1.9859497613732073,
"y": 6.154075816923565
},
"nextControl": null,
"isLocked": false,
"linkedName": "end of path 3"
}
],
"rotationTargets": [
{
"waypointRelativePos": 1.0,
"rotationDegrees": 0.0,
"rotateFast": true
}
],
"constraintZones": [],
"eventMarkers": [
{
"name": "shoot note",
"waypointRelativePos": 1.0,
"command": {
"type": "sequential",
"data": {
"commands": []
}
}
},
{
"name": "run intake and feeders",
"waypointRelativePos": 1.2,
"command": {
"type": "parallel",
"data": {
"commands": []
}
}
},
{
"name": "pivot shooter to intake pos",
"waypointRelativePos": 1.2,
"command": {
"type": "parallel",
"data": {
"commands": []
}
}
},
{
"name": "pivot shooter to shoot pos",
"waypointRelativePos": 0.25,
"command": {
"type": "parallel",
"data": {
"commands": []
}
}
}
],
"globalConstraints": {
"maxVelocity": 3.0,
"maxAcceleration": 3.0,
"maxAngularVelocity": 540.0,
"maxAngularAcceleration": 720.0
},
"goalEndState": {
"velocity": 0,
"rotation": 42.82525588538983,
"rotateFast": false
},
"reversed": false,
"folder": null,
"previewStartingState": {
"rotation": -45.80692945510236,
"velocity": 0
},
"useDefaultConstraints": true
}
Loading

0 comments on commit 8246d92

Please sign in to comment.