Skip to content
This repository has been archived by the owner on May 19, 2024. It is now read-only.

Commit

Permalink
feat(auto): Add more paths.
Browse files Browse the repository at this point in the history
  • Loading branch information
haydenheroux committed Feb 11, 2024
1 parent 8fd3781 commit 9e46e24
Show file tree
Hide file tree
Showing 6 changed files with 179 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
{
"version": 1.0,
"startingPose": {
"position": {
"x": 2.0,
"y": 7.0
},
"rotation": 0
},
"startingPose": null,
"command": {
"type": "sequential",
"data": {
"commands": [
{
"type": "path",
"data": {
"pathName": "3m Backwards"
"pathName": "+5m -5m spin"
}
}
]
Expand Down
19 changes: 19 additions & 0 deletions src/main/deploy/pathplanner/autos/+5m -5m.auto
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"version": 1.0,
"startingPose": null,
"command": {
"type": "sequential",
"data": {
"commands": [
{
"type": "path",
"data": {
"pathName": "+5m -5m"
}
}
]
}
},
"folder": null,
"choreoAuto": false
}
19 changes: 19 additions & 0 deletions src/main/deploy/pathplanner/autos/+5m.auto
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"version": 1.0,
"startingPose": null,
"command": {
"type": "sequential",
"data": {
"commands": [
{
"type": "path",
"data": {
"pathName": "+5m"
}
}
]
}
},
"folder": null,
"choreoAuto": false
}
71 changes: 71 additions & 0 deletions src/main/deploy/pathplanner/paths/+5m -5m spin.path
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
{
"version": 1.0,
"waypoints": [
{
"anchor": {
"x": 2.0,
"y": 7.0
},
"prevControl": null,
"nextControl": {
"x": 3.118033988749895,
"y": 7.0
},
"isLocked": false,
"linkedName": null
},
{
"anchor": {
"x": 7.0,
"y": 7.0
},
"prevControl": {
"x": 6.88,
"y": 7.0
},
"nextControl": {
"x": 7.1154848849079295,
"y": 7.0
},
"isLocked": false,
"linkedName": null
},
{
"anchor": {
"x": 2.0,
"y": 7.0
},
"prevControl": {
"x": 0.47930936742544894,
"y": 7.0
},
"nextControl": null,
"isLocked": false,
"linkedName": null
}
],
"rotationTargets": [
{
"waypointRelativePos": 1.0,
"rotationDegrees": 180.0,
"rotateFast": true
}
],
"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": null,
"previewStartingState": null,
"useDefaultConstraints": true
}
65 changes: 65 additions & 0 deletions src/main/deploy/pathplanner/paths/+5m -5m.path
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"version": 1.0,
"waypoints": [
{
"anchor": {
"x": 2.0,
"y": 7.0
},
"prevControl": null,
"nextControl": {
"x": 3.118033988749895,
"y": 7.0
},
"isLocked": true,
"linkedName": null
},
{
"anchor": {
"x": 5.0,
"y": 7.0
},
"prevControl": {
"x": 4.88,
"y": 7.0
},
"nextControl": {
"x": 5.1154848849079295,
"y": 7.0
},
"isLocked": true,
"linkedName": null
},
{
"anchor": {
"x": 2.0,
"y": 7.0
},
"prevControl": {
"x": 0.47930936742544894,
"y": 7.0
},
"nextControl": null,
"isLocked": true,
"linkedName": null
}
],
"rotationTargets": [],
"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": null,
"previewStartingState": null,
"useDefaultConstraints": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
},
{
"anchor": {
"x": 5.0,
"x": 7.0,
"y": 7.0
},
"prevControl": {
"x": 3.479309367425449,
"x": 6.88,
"y": 7.0
},
"nextControl": null,
Expand All @@ -45,5 +45,5 @@
"reversed": false,
"folder": null,
"previewStartingState": null,
"useDefaultConstraints": false
"useDefaultConstraints": true
}

0 comments on commit 9e46e24

Please sign in to comment.