Skip to content

Commit

Permalink
rename autos
Browse files Browse the repository at this point in the history
  • Loading branch information
bakedPotatoLord committed Mar 19, 2024
1 parent 725d965 commit 18288d3
Show file tree
Hide file tree
Showing 4 changed files with 79 additions and 2 deletions.
25 changes: 25 additions & 0 deletions src/main/deploy/pathplanner/autos/leave.auto
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"version": 1.0,
"startingPose": {
"position": {
"x": 0.9655389926893594,
"y": 2.2857638132337867
},
"rotation": 0
},
"command": {
"type": "sequential",
"data": {
"commands": [
{
"type": "path",
"data": {
"pathName": "leave"
}
}
]
}
},
"folder": null,
"choreoAuto": false
}
52 changes: 52 additions & 0 deletions src/main/deploy/pathplanner/paths/leave.path
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"version": 1.0,
"waypoints": [
{
"anchor": {
"x": 1.1406187741285432,
"y": 2.383030358477778
},
"prevControl": null,
"nextControl": {
"x": 2.140618774128545,
"y": 2.383030358477778
},
"isLocked": false,
"linkedName": null
},
{
"anchor": {
"x": 3.241576151398748,
"y": 0.7489523983787291
},
"prevControl": {
"x": 2.241576151398748,
"y": 0.7489523983787291
},
"nextControl": null,
"isLocked": false,
"linkedName": null
}
],
"rotationTargets": [],
"constraintZones": [],
"eventMarkers": [],
"globalConstraints": {
"maxVelocity": 3.0,
"maxAcceleration": 4.0,
"maxAngularVelocity": 720.0,
"maxAngularAcceleration": 720.0
},
"goalEndState": {
"velocity": 0,
"rotation": 0,
"rotateFast": false
},
"reversed": false,
"folder": null,
"previewStartingState": {
"rotation": 0,
"velocity": 0
},
"useDefaultConstraints": true
}
4 changes: 2 additions & 2 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ public RobotContainer() {

private void configureButtonBindings() {

SmartDashboard.putData(new PathPlannerAuto("ampStart"));
SmartDashboard.putData(new PathPlannerAuto("rollOut"));
SmartDashboard.putData(new PathPlannerAuto("leave"));
SmartDashboard.putData(new PathPlannerAuto("2note"));

// Config driver controller buttons

Expand Down

0 comments on commit 18288d3

Please sign in to comment.