Skip to content

Commit 890149e

Browse files
authored
Merge pull request #76 from errorcodexero/red-AND-dead
Point forward to y & b, not at red alliance
2 parents 3341d0c + 3ddff2e commit 890149e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/main/java/frc/robot/subsystems/drive

src/main/java/frc/robot/subsystems/drive/Drive.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ public Command resetGyroCmd(Rotation2d rotation) {
365365
}
366366

367367
public Command resetGyroCmd() {
368-
return resetGyroCmd(Rotation2d.kZero);
368+
return resetGyroCmd(DriverStation.getAlliance().orElse(Alliance.Blue) == Alliance.Blue ? Rotation2d.kZero : Rotation2d.fromDegrees(180.0));
369369
}
370370

371371
public Command stopWithXCmd() {

0 commit comments

Comments
 (0)