Skip to content
This repository has been archived by the owner on Jan 6, 2024. It is now read-only.

Commit

Permalink
Merge branch 'main' into intake-current-detection
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahsnider committed Oct 12, 2023
2 parents fc59840 + 85234a3 commit bd9d9fa
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/main/deploy/pathplanner/BlueLongSide3.path
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
{
"anchorPoint": {
"x": 1.831789277613643,
"y": 1.61410638610751
"y": 1.4100000000000001
},
"prevControl": null,
"nextControl": {
"x": 2.233698996273372,
"y": 0.3959396976544713
"y": 0.19183331154696143
},
"holonomicAngle": 180.0,
"isReversal": false,
Expand Down
2 changes: 1 addition & 1 deletion src/main/deploy/pathplanner/BlueMidBump2Balance.path
Original file line number Diff line number Diff line change
Expand Up @@ -300,4 +300,4 @@
]
}
]
}
}
4 changes: 2 additions & 2 deletions src/main/deploy/pathplanner/RedLongSide3.path
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
{
"anchorPoint": {
"x": 14.708210722386356,
"y": 1.61410638610751
"y": 1.4100000000000001
},
"prevControl": null,
"nextControl": {
"x": 14.306301003726627,
"y": 0.39593969765447135
"y": 0.19183331154696148
},
"holonomicAngle": 0,
"isReversal": false,
Expand Down
2 changes: 1 addition & 1 deletion src/main/deploy/pathplanner/RedMidBump2Balance.path
Original file line number Diff line number Diff line change
Expand Up @@ -300,4 +300,4 @@
]
}
]
}
}
2 changes: 1 addition & 1 deletion src/main/deploy/pathplanner/RedMidFlat2Balance.path
Original file line number Diff line number Diff line change
Expand Up @@ -300,4 +300,4 @@
]
}
]
}
}
11 changes: 7 additions & 4 deletions src/main/java/frc/robot/managers/SuperstructureManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -211,10 +211,13 @@ public Command getShelfIntakeCommand() {
}

public Command getShelfIntakeEvilCommand() {
return getCommand(States.INTAKING_CONE_SHELF_EVIL)
// Interrupt command early, start stowing as soon as we are holding a cone - don't wait
// until wrist is at goal (since it gets messed up after the impact with the shelf)
.until(() -> intake.hasCone())
return Commands.runOnce(() -> intake.setGamePiece(HeldGamePiece.NOTHING), intake)
.andThen(
getCommand(States.INTAKING_CONE_SHELF_EVIL)
// Interrupt command early, start stowing as soon as we are holding a cone - don't
// wait until wrist is at goal (since it gets messed up after the impact with the
// shelf)
.until(() -> intake.getGamePiece() == HeldGamePiece.CONE))
.andThen(getCommand(States.STOWED))
.withName("SuperstructureShelfIntakeEvil");
}
Expand Down

0 comments on commit bd9d9fa

Please sign in to comment.