Skip to content

Commit

Permalink
paths
Browse files Browse the repository at this point in the history
  • Loading branch information
cherriae committed Mar 11, 2024
1 parent 41c498d commit d4e4ccc
Show file tree
Hide file tree
Showing 6 changed files with 168 additions and 24 deletions.
61 changes: 61 additions & 0 deletions src/main/deploy/pathplanner/autos/3 closest from d2.auto
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"version": 1.0,
"startingPose": {
"position": {
"x": 1.3459738631188973,
"y": 5.546821904454621
},
"rotation": 180.0
},
"command": {
"type": "sequential",
"data": {
"commands": [
{
"type": "named",
"data": {
"name": "shoot"
}
},
{
"type": "path",
"data": {
"pathName": "get bot note"
}
},
{
"type": "path",
"data": {
"pathName": "shoot bot note"
}
},
{
"type": "named",
"data": {
"name": "shoot"
}
},
{
"type": "path",
"data": {
"pathName": "get mid note"
}
},
{
"type": "path",
"data": {
"pathName": "shoot mid note"
}
},
{
"type": "named",
"data": {
"name": "shoot"
}
}
]
}
},
"folder": "ds2",
"choreoAuto": false
}
20 changes: 19 additions & 1 deletion src/main/deploy/pathplanner/paths/get bot note.path
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,25 @@
],
"rotationTargets": [],
"constraintZones": [],
"eventMarkers": [],
"eventMarkers": [
{
"name": "New Event Marker",
"waypointRelativePos": 0.0,
"command": {
"type": "sequential",
"data": {
"commands": [
{
"type": "named",
"data": {
"name": "actuateOut"
}
}
]
}
}
}
],
"globalConstraints": {
"maxVelocity": 4.67,
"maxAcceleration": 3.0,
Expand Down
34 changes: 26 additions & 8 deletions src/main/deploy/pathplanner/paths/get mid note.path
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
"waypoints": [
{
"anchor": {
"x": 1.75,
"y": 5.08
"x": 1.3644632694670795,
"y": 5.4821089822359825
},
"prevControl": null,
"nextControl": {
"x": 2.031773632916635,
"y": 5.306459621928253
"x": 1.7434960996048119,
"y": 5.4821089822359825
},
"isLocked": false,
"linkedName": null
Expand All @@ -20,8 +20,8 @@
"y": 5.4821089822359825
},
"prevControl": {
"x": 2.1226589047772686,
"y": 5.260236106057798
"x": 1.9653689757829964,
"y": 5.491353685410074
},
"nextControl": null,
"isLocked": false,
Expand All @@ -30,7 +30,25 @@
],
"rotationTargets": [],
"constraintZones": [],
"eventMarkers": [],
"eventMarkers": [
{
"name": "New Event Marker",
"waypointRelativePos": 0.25,
"command": {
"type": "sequential",
"data": {
"commands": [
{
"type": "named",
"data": {
"name": "actuateOut"
}
}
]
}
}
}
],
"globalConstraints": {
"maxVelocity": 4.67,
"maxAcceleration": 3.0,
Expand All @@ -39,7 +57,7 @@
},
"goalEndState": {
"velocity": 0,
"rotation": -169.16285952829082,
"rotation": 180.0,
"rotateFast": false
},
"reversed": false,
Expand Down
21 changes: 16 additions & 5 deletions src/main/deploy/pathplanner/paths/get top note.path
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
"waypoints": [
{
"anchor": {
"x": 1.85,
"y": 5.91
"x": 1.4291761916857166,
"y": 5.491353685410074
},
"prevControl": null,
"nextControl": {
"x": 2.3178160075239065,
"y": 6.489781628211905
"x": 1.896992199209622,
"y": 6.071135313621979
},
"isLocked": false,
"linkedName": null
Expand All @@ -30,7 +30,18 @@
],
"rotationTargets": [],
"constraintZones": [],
"eventMarkers": [],
"eventMarkers": [
{
"name": "New Event Marker",
"waypointRelativePos": 0,
"command": {
"type": "sequential",
"data": {
"commands": []
}
}
}
],
"globalConstraints": {
"maxVelocity": 4.67,
"maxAcceleration": 3.0,
Expand Down
30 changes: 24 additions & 6 deletions src/main/deploy/pathplanner/paths/shoot bot note.path
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
},
{
"anchor": {
"x": 2.51,
"y": 5.130810261620524
"x": 1.3829526758152613,
"y": 5.546821904454621
},
"prevControl": {
"x": 2.5477852757507313,
"y": 4.788756244179157
"x": 1.4207379515659924,
"y": 5.204767887013254
},
"nextControl": null,
"isLocked": false,
Expand All @@ -30,7 +30,25 @@
],
"rotationTargets": [],
"constraintZones": [],
"eventMarkers": [],
"eventMarkers": [
{
"name": "New Event Marker",
"waypointRelativePos": 0.2,
"command": {
"type": "sequential",
"data": {
"commands": [
{
"type": "named",
"data": {
"name": "actuateIn"
}
}
]
}
}
}
],
"globalConstraints": {
"maxVelocity": 4.67,
"maxAcceleration": 3.0,
Expand All @@ -39,7 +57,7 @@
},
"goalEndState": {
"velocity": 0,
"rotation": 178.4011743924179,
"rotation": 180.0,
"rotateFast": false
},
"reversed": false,
Expand Down
26 changes: 22 additions & 4 deletions src/main/deploy/pathplanner/paths/shoot mid note.path
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
},
{
"anchor": {
"x": 2.4,
"x": 1.3644632694670795,
"y": 5.48
},
"prevControl": {
"x": 2.418359431313457,
"x": 1.382822700780537,
"y": 5.500598388584165
},
"nextControl": null,
Expand All @@ -30,7 +30,25 @@
],
"rotationTargets": [],
"constraintZones": [],
"eventMarkers": [],
"eventMarkers": [
{
"name": "New Event Marker",
"waypointRelativePos": 0.0,
"command": {
"type": "sequential",
"data": {
"commands": [
{
"type": "named",
"data": {
"name": "actuateIn"
}
}
]
}
}
}
],
"globalConstraints": {
"maxVelocity": 4.67,
"maxAcceleration": 3.0,
Expand All @@ -39,7 +57,7 @@
},
"goalEndState": {
"velocity": 0,
"rotation": -179.10482628978892,
"rotation": 180.0,
"rotateFast": false
},
"reversed": false,
Expand Down

0 comments on commit d4e4ccc

Please sign in to comment.