Skip to content

Commit

Permalink
Revert "4 piece auto from the subwoofer"
Browse files Browse the repository at this point in the history
This reverts commit e6d5d6b.
  • Loading branch information
cherriae committed Oct 20, 2024
1 parent c3b263b commit e51b3f0
Show file tree
Hide file tree
Showing 26 changed files with 50 additions and 121 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
]
}
},
"folder": null,
"folder": "1 Piece",
"choreoAuto": false
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
]
}
},
"folder": null,
"folder": "1 Piece",
"choreoAuto": false
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
]
}
},
"folder": null,
"folder": "1 Piece",
"choreoAuto": false
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@
]
}
},
"folder": null,
"folder": "2 Piece",
"choreoAuto": false
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@
]
}
},
"folder": null,
"folder": "2 Piece",
"choreoAuto": false
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@
]
}
},
"folder": null,
"folder": "2 Piece",
"choreoAuto": false
}
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@
]
}
},
"folder": null,
"folder": "3 Piece",
"choreoAuto": false
}
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,6 @@
]
}
},
"folder": null,
"folder": "3 Piece",
"choreoAuto": false
}
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@
]
}
},
"folder": null,
"folder": "3 Piece",
"choreoAuto": false
}
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@
]
}
},
"folder": null,
"folder": "3 Piece",
"choreoAuto": false
}
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@
]
}
},
"folder": null,
"folder": "3 Piece",
"choreoAuto": false
}
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@
]
}
},
"folder": null,
"folder": "3 Piece",
"choreoAuto": false
}
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@
]
}
},
"folder": null,
"folder": "3 Piece",
"choreoAuto": false
}
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@
]
}
},
"folder": null,
"folder": "3 Piece",
"choreoAuto": false
}
54 changes: 17 additions & 37 deletions src/main/deploy/pathplanner/autos/4 Piece 4 Notes.auto
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
{
"type": "path",
"data": {
"pathName": "Top Note to Center Subwoofer"
"pathName": "Center Note to Center Sub"
}
},
{
Expand All @@ -49,64 +49,44 @@
}
},
{
"type": "path",
"type": "named",
"data": {
"pathName": "Center Subwoofer to Center Note"
"name": "actuateInFast"
}
},
{
"type": "parallel",
"type": "named",
"data": {
"commands": [
{
"type": "path",
"data": {
"pathName": "Center Note to Subwoofer"
}
},
{
"type": "named",
"data": {
"name": "actuateInFast"
}
}
]
"name": "shoot"
}
},
{
"type": "named",
"type": "path",
"data": {
"name": "shoot"
"pathName": "Center Subwoofer to Center Note"
}
},
{
"type": "path",
"data": {
"pathName": "Center Subwoofer to Bottom Note"
"pathName": "Center Note to Center Sub"
}
},
{
"type": "parallel",
"type": "named",
"data": {
"commands": [
{
"type": "path",
"data": {
"pathName": "Bottom Note to Center Subwoofer"
}
},
{
"type": "named",
"data": {
"name": "actuateInFast"
}
}
]
"name": "actuateInFast"
}
},
{
"type": "named",
"data": {
"name": "shoot"
}
}
]
}
},
"folder": null,
"folder": "4 Piece",
"choreoAuto": false
}
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,6 @@
]
}
},
"folder": null,
"folder": "4 Piece",
"choreoAuto": false
}
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,6 @@
]
}
},
"folder": null,
"folder": "4 Piece",
"choreoAuto": false
}
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,6 @@
]
}
},
"folder": null,
"folder": "4 Piece",
"choreoAuto": false
}
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,6 @@
]
}
},
"folder": null,
"folder": "4 Piece",
"choreoAuto": false
}
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,6 @@
]
}
},
"folder": null,
"folder": "4 Piece",
"choreoAuto": false
}
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,6 @@
]
}
},
"folder": null,
"folder": "4 Piece",
"choreoAuto": false
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
"waypoints": [
{
"anchor": {
"x": 2.5209773226564,
"y": 5.56
"x": 2.377154468594652,
"y": 5.55593454044051
},
"prevControl": null,
"nextControl": {
"x": 1.9199395491522817,
"y": 5.589318915780689
"x": 1.7761166950905336,
"y": 5.585253456221199
},
"isLocked": false,
"linkedName": null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
"waypoints": [
{
"anchor": {
"x": 1.5,
"x": 1.4661550043820806,
"y": 5.55593454044051
},
"prevControl": null,
"nextControl": {
"x": 1.9986371019329263,
"x": 1.964792106315007,
"y": 5.55593454044051
},
"isLocked": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
},
"prevControl": null,
"nextControl": {
"x": 2.457499476402462,
"y": 6.208485399426939
"x": 2.1572626002432207,
"y": 5.878442614024452
},
"isLocked": false,
"linkedName": null
Expand All @@ -20,8 +20,8 @@
"y": 5.56
},
"prevControl": {
"x": 1.5778778925978905,
"y": 5.637184783141497
"x": 1.164474241229184,
"y": 5.369566461238185
},
"nextControl": null,
"isLocked": false,
Expand Down
5 changes: 3 additions & 2 deletions src/main/java/frc/robot/commands/auto/AutonShoot.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ public AutonShoot(
// This command will squeeze the note and rev up the shooter if needed, all while auto-aiming.
new ParallelCommandGroup(
new SpinShooter(shooter, ShooterState.SHOOT, true).andThen(new WaitUntilCommand(shooter::isRevved)),
new FeedActuate(intake, FeedMode.INTAKE).withTimeout(1).onlyIf(() -> !intake.hasNoteAuton()),
new AutoAim(swerve, shooter, elevator)
new FeedActuate(intake, FeedMode.INTAKE).withTimeout(1).onlyIf(() -> !intake.hasNoteAuton())
// ,
// new AutoAim(swerve, shooter, elevator)
),

new FeedActuate(intake, FeedMode.OUTTAKE).withTimeout(0.5)
Expand Down

0 comments on commit e51b3f0

Please sign in to comment.