Skip to content

Commit

Permalink
add new autos
Browse files Browse the repository at this point in the history
  • Loading branch information
Iooob committed Mar 2, 2024
1 parent 91aa6a7 commit dc92575
Show file tree
Hide file tree
Showing 4 changed files with 157 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"version": 1.0,
"startingPose": {
"position": {
"x": 1.5,
"y": 5.5
"x": 1.3959954881393342,
"y": 5.55
},
"rotation": 180.0
},
Expand Down
76 changes: 76 additions & 0 deletions src/main/deploy/pathplanner/autos/ShootSpeakerLeft.auto
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
{
"version": 1.0,
"startingPose": {
"position": {
"x": 0.7167669684840067,
"y": 6.745441850370149
},
"rotation": -122.66091272167378
},
"command": {
"type": "sequential",
"data": {
"commands": [
{
"type": "sequential",
"data": {
"commands": [
{
"type": "named",
"data": {
"name": "AimSpeakerCommand"
}
},
{
"type": "race",
"data": {
"commands": [
{
"type": "named",
"data": {
"name": "ArmCommand"
}
},
{
"type": "race",
"data": {
"commands": [
{
"type": "named",
"data": {
"name": "ShooterCommand"
}
},
{
"type": "wait",
"data": {
"waitTime": 2.0
}
}
]
}
}
]
}
},
{
"type": "named",
"data": {
"name": "AimLowerCommand"
}
}
]
}
},
{
"type": "path",
"data": {
"pathName": "SpeakerToLine"
}
}
]
}
},
"folder": null,
"choreoAuto": false
}
76 changes: 76 additions & 0 deletions src/main/deploy/pathplanner/autos/ShootSpeakerRight.auto
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
{
"version": 1.0,
"startingPose": {
"position": {
"x": 0.787031987758696,
"y": 4.356431195030721
},
"rotation": 120.96375653207355
},
"command": {
"type": "sequential",
"data": {
"commands": [
{
"type": "sequential",
"data": {
"commands": [
{
"type": "named",
"data": {
"name": "AimSpeakerCommand"
}
},
{
"type": "race",
"data": {
"commands": [
{
"type": "named",
"data": {
"name": "ArmCommand"
}
},
{
"type": "race",
"data": {
"commands": [
{
"type": "named",
"data": {
"name": "ShooterCommand"
}
},
{
"type": "wait",
"data": {
"waitTime": 2.0
}
}
]
}
}
]
}
},
{
"type": "named",
"data": {
"name": "AimLowerCommand"
}
}
]
}
},
{
"type": "path",
"data": {
"pathName": "SpeakerToLine"
}
}
]
}
},
"folder": null,
"choreoAuto": false
}
4 changes: 3 additions & 1 deletion src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,9 @@ private void bindShooterSysIDCommands() {

private void initializeAutonomous() {
// Network Table Routine Options
autoDashboardChooser.setDefaultOption("ShootSpeakerClose", "ShootSpeakerClose");
autoDashboardChooser.setDefaultOption("ShootSpeakerCenter", "ShootSpeakerCenter");
autoDashboardChooser.addOption("ShootSpeakerLeft", "ShootSpeakerLeft");
autoDashboardChooser.addOption("ShootSpeakerRight", "ShootSpeakerRight");
autoDashboardChooser.addOption("ShootSpeakerFar", "ShootSpeakerFar");
autoDashboardChooser.addOption("DriveForward", "DriveForward");
autoDashboardChooser.addOption("Do Nothing", "DoNothing");
Expand Down

0 comments on commit dc92575

Please sign in to comment.