Skip to content

Commit 71e3283

Browse files
Fixed some edge cases
1 parent 35e3860 commit 71e3283

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
@@ -296,6 +296,9 @@ public void toReefAlign() {
296296
}
297297

298298
private void toReefAlign(boolean getAlgae, boolean drive) {
299+
if ((hasAlgae() && scoreSide == ScoreSide.RIGHT && drive) || (hasAlgae() && !hasCoral())) {
300+
setState(RobotStates.STOW);
301+
}
299302
if (drive) {
300303
tagAlignSubsystem.start(allianceColor, scoreSide == ScoreSide.LEFT);
301304
setState(RobotStates.REEF_ALIGN);

0 commit comments

Comments
 (0)