[hal,wpilib] Rename DriverStation constants to all caps

This commit is contained in:
Peter Johnson
2026-03-13 01:04:29 -07:00
parent 614eb1db18
commit 227f01f3bd
51 changed files with 555 additions and 550 deletions

View File

@@ -69,7 +69,7 @@ class DigitalCommunicationTest {
SimHooks.stepTiming(0.02);
assertEquals(alliance.name().startsWith("Red"), m_allianceOutput.getValue());
assertEquals(alliance.name().startsWith("RED"), m_allianceOutput.getValue());
}
@ValueSource(booleans = {true, false})

View File

@@ -76,8 +76,8 @@ class I2CCommunicationTest {
SimHooks.stepTiming(0.02);
String str = assertTimeoutPreemptively(Duration.ofMillis(20L), () -> m_future.get());
char expected = alliance.name().startsWith("Red") ? 'R' : 'B';
if (alliance.name().startsWith("Unknown")) {
char expected = alliance.name().startsWith("RED") ? 'R' : 'B';
if (alliance.name().startsWith("UNKNOWN")) {
expected = 'U';
}