Skip to content

Commit

Permalink
added the named commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Rvistix committed Mar 13, 2024
1 parent 25d1299 commit 9d0b318
Show file tree
Hide file tree
Showing 6 changed files with 144 additions and 4 deletions.
31 changes: 31 additions & 0 deletions src/main/deploy/pathplanner/autos/BLUE_Bottom_4_Piece.auto
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,25 @@
"type": "sequential",
"data": {
"commands": [
{
"type": "parallel",
"data": {
"commands": [
{
"type": "named",
"data": {
"name": "SubShoot"
}
},
{
"type": "named",
"data": {
"name": "IntakeDown"
}
}
]
}
},
{
"type": "path",
"data": {
Expand All @@ -23,6 +42,12 @@
"pathName": "BLUE_Path5"
}
},
{
"type": "named",
"data": {
"name": "VisionShoot"
}
},
{
"type": "path",
"data": {
Expand All @@ -34,6 +59,12 @@
"data": {
"pathName": "BLUE_Path3"
}
},
{
"type": "named",
"data": {
"name": "VisionShoot"
}
}
]
}
Expand Down
37 changes: 37 additions & 0 deletions src/main/deploy/pathplanner/autos/BLUE_Top_4_Piece.auto
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,37 @@
"type": "sequential",
"data": {
"commands": [
{
"type": "parallel",
"data": {
"commands": [
{
"type": "named",
"data": {
"name": "SubShoot"
}
},
{
"type": "named",
"data": {
"name": "IntakeDown"
}
}
]
}
},
{
"type": "path",
"data": {
"pathName": "BLUE_3_Piece_Path_1"
}
},
{
"type": "named",
"data": {
"name": "VisionShoot"
}
},
{
"type": "path",
"data": {
Expand All @@ -29,6 +54,12 @@
"pathName": "BLUE_3_Piece_Path_3"
}
},
{
"type": "named",
"data": {
"name": "VisionShoot"
}
},
{
"type": "path",
"data": {
Expand All @@ -40,6 +71,12 @@
"data": {
"pathName": "BLUE_3_Piece_Path_5"
}
},
{
"type": "named",
"data": {
"name": "VisionShoot"
}
}
]
}
Expand Down
20 changes: 19 additions & 1 deletion src/main/deploy/pathplanner/paths/BLUE_3_Piece_Path_2.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.45,
"command": {
"type": "parallel",
"data": {
"commands": [
{
"type": "named",
"data": {
"name": "SmartIntakeCommand"
}
}
]
}
}
}
],
"globalConstraints": {
"maxVelocity": 3.0,
"maxAcceleration": 3.0,
Expand Down
20 changes: 19 additions & 1 deletion src/main/deploy/pathplanner/paths/BLUE_3_Piece_Path_4.path
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,25 @@
],
"rotationTargets": [],
"constraintZones": [],
"eventMarkers": [],
"eventMarkers": [
{
"name": "New Event Marker",
"waypointRelativePos": 0.35,
"command": {
"type": "parallel",
"data": {
"commands": [
{
"type": "named",
"data": {
"name": "VisionShoot"
}
}
]
}
}
}
],
"globalConstraints": {
"maxVelocity": 3.0,
"maxAcceleration": 3.0,
Expand Down
20 changes: 19 additions & 1 deletion src/main/deploy/pathplanner/paths/BLUE_Path1.path
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,25 @@
],
"rotationTargets": [],
"constraintZones": [],
"eventMarkers": [],
"eventMarkers": [
{
"name": "New Event Marker",
"waypointRelativePos": 0.95,
"command": {
"type": "sequential",
"data": {
"commands": [
{
"type": "named",
"data": {
"name": "SmartIntakeCommand"
}
}
]
}
}
}
],
"globalConstraints": {
"maxVelocity": 3.0,
"maxAcceleration": 3.0,
Expand Down
20 changes: 19 additions & 1 deletion src/main/deploy/pathplanner/paths/BLUE_Path2.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.25,
"command": {
"type": "parallel",
"data": {
"commands": [
{
"type": "named",
"data": {
"name": "SmartIntakeCommand"
}
}
]
}
}
}
],
"globalConstraints": {
"maxVelocity": 3.0,
"maxAcceleration": 3.0,
Expand Down

0 comments on commit 9d0b318

Please sign in to comment.