Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/main/cpp/RobotContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,3 +212,10 @@ void RobotContainer::EnableTagTracking() {
void RobotContainer::SetSlew(bool state) {
m_drive.SetLimiting(state);
}

frc2::CommandPtr RobotContainer::GetAutonomousCommand(){
// This method loads the auto when it is called, however, it is recommended
// to first load your paths/autos when code starts, then return the
// pre-loaded auto/path
return PathPlannerAuto("Example Auto").ToPtr();
}
115 changes: 115 additions & 0 deletions src/main/deploy/pathplanner/autos/Left B.auto
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
{
"version": "2025.0",
"command": {
"type": "sequential",
"data": {
"commands": [
{
"type": "path",
"data": {
"pathName": "Left to Coral 1"
}
},
{
"type": "wait",
"data": {
"waitTime": 1.0
}
},
{
"type": "named",
"data": {
"name": "Score Coral"
}
},
{
"type": "path",
"data": {
"pathName": "Left Coral Rack to Pit 2"
}
},
{
"type": "wait",
"data": {
"waitTime": 1.0
}
},
{
"type": "named",
"data": {
"name": "Get New Coral"
}
},
{
"type": "path",
"data": {
"pathName": "Left Pit to Coral Rack 3"
}
},
{
"type": "wait",
"data": {
"waitTime": 1.0
}
},
{
"type": "named",
"data": {
"name": "Score Coral"
}
},
{
"type": "path",
"data": {
"pathName": "Left Coral Rack to Pit 4"
}
},
{
"type": "wait",
"data": {
"waitTime": 1.0
}
},
{
"type": "named",
"data": {
"name": "Get New Coral"
}
},
{
"type": "path",
"data": {
"pathName": "Left Pit to Coral Rack 3"
}
},
{
"type": "wait",
"data": {
"waitTime": 1.0
}
},
{
"type": "named",
"data": {
"name": "Score Coral"
}
},
{
"type": "wait",
"data": {
"waitTime": 1.0
}
},
{
"type": "named",
"data": {
"name": "Get Algae"
}
}
]
}
},
"resetOdom": true,
"folder": "Bottom LeftRight Skibidi Pits",
"choreoAuto": false
}
73 changes: 73 additions & 0 deletions src/main/deploy/pathplanner/autos/Left T.auto
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{
"version": "2025.0",
"command": {
"type": "sequential",
"data": {
"commands": [
{
"type": "path",
"data": {
"pathName": "Left to Coral Rack 1"
}
},
{
"type": "wait",
"data": {
"waitTime": 1.5
}
},
{
"type": "named",
"data": {
"name": "Score Coral"
}
},
{
"type": "path",
"data": {
"pathName": "L Coral Rack To Pit 2"
}
},
{
"type": "wait",
"data": {
"waitTime": 3.0
}
},
{
"type": "named",
"data": {
"name": "Get New Coral"
}
},
{
"type": "path",
"data": {
"pathName": "L Pit To Coral Rack 3"
}
},
{
"type": "wait",
"data": {
"waitTime": 1.5
}
},
{
"type": "named",
"data": {
"name": "Get Algae"
}
},
{
"type": "path",
"data": {
"pathName": "L Coral Rack To Pit 4"
}
}
]
}
},
"resetOdom": true,
"folder": "Top LeftRight Alpha Pits",
"choreoAuto": false
}
103 changes: 103 additions & 0 deletions src/main/deploy/pathplanner/autos/Middle B.auto
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
{
"version": "2025.0",
"command": {
"type": "sequential",
"data": {
"commands": [
{
"type": "path",
"data": {
"pathName": "Straight Drop Off Zone Middle 1"
}
},
{
"type": "named",
"data": {
"name": "Score Coral"
}
},
{
"type": "wait",
"data": {
"waitTime": 1.0
}
},
{
"type": "path",
"data": {
"pathName": "Middle to Left (Set for Pit)2"
}
},
{
"type": "named",
"data": {
"name": "Get New Coral"
}
},
{
"type": "wait",
"data": {
"waitTime": 1.0
}
},
{
"type": "path",
"data": {
"pathName": "MidLeft to Coral Rack3"
}
},
{
"type": "named",
"data": {
"name": "Score Coral"
}
},
{
"type": "wait",
"data": {
"waitTime": 1.0
}
},
{
"type": "path",
"data": {
"pathName": " MidLeft Coral Rack to Pit4"
}
},
{
"type": "named",
"data": {
"name": "Get New Coral"
}
},
{
"type": "wait",
"data": {
"waitTime": 1.0
}
},
{
"type": "path",
"data": {
"pathName": "MidLeft to Coral Rack3"
}
},
{
"type": "named",
"data": {
"name": "Score Coral"
}
},
{
"type": "named",
"data": {
"name": "Get Algae"
}
}
]
}
},
"resetOdom": false,
"folder": "Bottom LeftRight Skibidi Pits",
"choreoAuto": false
}
73 changes: 73 additions & 0 deletions src/main/deploy/pathplanner/autos/Middle T.auto
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{
"version": "2025.0",
"command": {
"type": "sequential",
"data": {
"commands": [
{
"type": "path",
"data": {
"pathName": "Middle to Coral Rack 1"
}
},
{
"type": "wait",
"data": {
"waitTime": 1.5
}
},
{
"type": "named",
"data": {
"name": "Score Coral"
}
},
{
"type": "path",
"data": {
"pathName": "M Corral Rack To Pick 2"
}
},
{
"type": "wait",
"data": {
"waitTime": 3.0
}
},
{
"type": "named",
"data": {
"name": "Get New Coral"
}
},
{
"type": "path",
"data": {
"pathName": "M Pit To Corral Rack 3"
}
},
{
"type": "wait",
"data": {
"waitTime": 1.5
}
},
{
"type": "named",
"data": {
"name": "Get Algae"
}
},
{
"type": "path",
"data": {
"pathName": "M Corral Rack To Pit 4"
}
}
]
}
},
"resetOdom": true,
"folder": "Top LeftRight Alpha Pits",
"choreoAuto": false
}
Loading