We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3341d0c + 3ddff2e commit 890149eCopy full SHA for 890149e
1 file changed
src/main/java/frc/robot/subsystems/drive/Drive.java
@@ -365,7 +365,7 @@ public Command resetGyroCmd(Rotation2d rotation) {
365
}
366
367
public Command resetGyroCmd() {
368
- return resetGyroCmd(Rotation2d.kZero);
+ return resetGyroCmd(DriverStation.getAlliance().orElse(Alliance.Blue) == Alliance.Blue ? Rotation2d.kZero : Rotation2d.fromDegrees(180.0));
369
370
371
public Command stopWithXCmd() {
0 commit comments