Skip to content

Commit

Permalink
changed auto elevator
Browse files Browse the repository at this point in the history
  • Loading branch information
ConnorJNorris committed Feb 21, 2025
1 parent 9e51568 commit 7d4d2b2
Show file tree
Hide file tree
Showing 3 changed files with 233 additions and 21 deletions.
225 changes: 225 additions & 0 deletions src/main/deploy/pathplanner/autos/Copy of T6.auto
Original file line number Diff line number Diff line change
@@ -0,0 +1,225 @@
{
"version": "2025.0",
"command": {
"type": "sequential",
"data": {
"commands": [
{
"type": "sequential",
"data": {
"commands": [
{
"type": "path",
"data": {
"pathName": "Start I"
}
},
{
"type": "race",
"data": {
"commands": [
{
"type": "named",
"data": {
"name": "L4"
}
},
{
"type": "wait",
"data": {
"waitTime": 1.2
}
}
]
}
}
]
}
},
{
"type": "sequential",
"data": {
"commands": [
{
"type": "parallel",
"data": {
"commands": [
{
"type": "named",
"data": {
"name": "Bottom"
}
},
{
"type": "path",
"data": {
"pathName": "Station I"
}
}
]
}
},
{
"type": "deadline",
"data": {
"commands": [
{
"type": "sequential",
"data": {
"commands": [
{
"type": "named",
"data": {
"name": "CoralDetect"
}
},
{
"type": "path",
"data": {
"pathName": "Coral J"
}
}
]
}
},
{
"type": "named",
"data": {
"name": "CoralIntake"
}
}
]
}
},
{
"type": "race",
"data": {
"commands": [
{
"type": "named",
"data": {
"name": "L4"
}
},
{
"type": "wait",
"data": {
"waitTime": 1.2
}
}
]
}
}
]
}
},
{
"type": "sequential",
"data": {
"commands": [
{
"type": "parallel",
"data": {
"commands": [
{
"type": "named",
"data": {
"name": "Bottom"
}
},
{
"type": "path",
"data": {
"pathName": "Station J"
}
}
]
}
},
{
"type": "deadline",
"data": {
"commands": [
{
"type": "sequential",
"data": {
"commands": [
{
"type": "named",
"data": {
"name": "CoralDetect"
}
},
{
"type": "path",
"data": {
"pathName": "Coral K"
}
}
]
}
},
{
"type": "named",
"data": {
"name": "CoralIntake"
}
}
]
}
},
{
"type": "race",
"data": {
"commands": [
{
"type": "named",
"data": {
"name": "L4"
}
},
{
"type": "wait",
"data": {
"waitTime": 1.2
}
}
]
}
}
]
}
},
{
"type": "sequential",
"data": {
"commands": [
{
"type": "parallel",
"data": {
"commands": [
{
"type": "named",
"data": {
"name": "Bottom"
}
},
{
"type": "path",
"data": {
"pathName": "Station K"
}
}
]
}
}
]
}
}
]
}
},
"resetOdom": true,
"folder": "T",
"choreoAuto": false
}
25 changes: 6 additions & 19 deletions src/main/deploy/pathplanner/autos/T6.auto
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"data": {
"commands": [
{
"type": "parallel",
"type": "sequential",
"data": {
"commands": [
{
Expand All @@ -15,32 +15,19 @@
}
},
{
"type": "sequential",
"type": "race",
"data": {
"commands": [
{
"type": "wait",
"type": "named",
"data": {
"waitTime": 1.0
"name": "L4"
}
},
{
"type": "race",
"type": "wait",
"data": {
"commands": [
{
"type": "named",
"data": {
"name": "L4"
}
},
{
"type": "wait",
"data": {
"waitTime": 1.4
}
}
]
"waitTime": 1.1
}
}
]
Expand Down
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 @@ -262,8 +262,8 @@ public RobotContainer() {
ElevatorConstants.kVelocity,
m_elevator),
Commands.run(() -> m_coralScorer.setCoralPercent(.0), m_coralScorer)
.withTimeout(1)
.andThen(Commands.run(() -> m_coralScorer.setCoralPercent(.50), m_coralScorer))));
.withTimeout(0.8)
.andThen(Commands.run(() -> m_coralScorer.setCoralPercent(.70), m_coralScorer))));
NamedCommands.registerCommand("L3", Commands.print("L3")); // Just print commands for right now.
NamedCommands.registerCommand("L2", Commands.print("L2"));
NamedCommands
Expand Down

0 comments on commit 7d4d2b2

Please sign in to comment.