Skip to content

Commit 43c6e30

Browse files
committed
Merge branch 'robot-state-reef' into robot-constants
2 parents 5c22727 + 71e3283 commit 43c6e30

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/frc/robot/subsystems/robotState/RobotStateSubsystem.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,9 @@ public void toReefAlign() {
334334

335335
private void toReefAlign(boolean getAlgae, boolean drive) {
336336
boolean wantAlgae = getAlgae || !coralSubsystem.hasCoral();
337+
if ((hasAlgae() && scoreSide == ScoreSide.RIGHT && drive) || (hasAlgae() && !hasCoral())) {
338+
setState(RobotStates.STOW);
339+
}
337340
if (drive) {
338341
tagAlignSubsystem.start(
339342
allianceColor,

0 commit comments

Comments
 (0)