mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
Made SensorBase a utility class and renamed it to SensorUtil (#813)
This commit is contained in:
committed by
Peter Johnson
parent
ba93f79d8b
commit
ecfe95383c
@@ -30,7 +30,7 @@ public class ConstantsPortsTest extends AbstractComsSetup {
|
||||
*/
|
||||
@Test
|
||||
public void testDigitalChannels() {
|
||||
assertEquals(31, SensorBase.kDigitalChannels);
|
||||
assertEquals(31, SensorUtil.kDigitalChannels);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -38,7 +38,7 @@ public class ConstantsPortsTest extends AbstractComsSetup {
|
||||
*/
|
||||
@Test
|
||||
public void testAnalogInputChannels() {
|
||||
assertEquals(8, SensorBase.kAnalogInputChannels);
|
||||
assertEquals(8, SensorUtil.kAnalogInputChannels);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -46,7 +46,7 @@ public class ConstantsPortsTest extends AbstractComsSetup {
|
||||
*/
|
||||
@Test
|
||||
public void testAnalogOutputChannels() {
|
||||
assertEquals(2, SensorBase.kAnalogOutputChannels);
|
||||
assertEquals(2, SensorUtil.kAnalogOutputChannels);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -54,7 +54,7 @@ public class ConstantsPortsTest extends AbstractComsSetup {
|
||||
*/
|
||||
@Test
|
||||
public void testSolenoidChannels() {
|
||||
assertEquals(8, SensorBase.kSolenoidChannels);
|
||||
assertEquals(8, SensorUtil.kSolenoidChannels);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -62,7 +62,7 @@ public class ConstantsPortsTest extends AbstractComsSetup {
|
||||
*/
|
||||
@Test
|
||||
public void testPwmChannels() {
|
||||
assertEquals(20, SensorBase.kPwmChannels);
|
||||
assertEquals(20, SensorUtil.kPwmChannels);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -70,7 +70,7 @@ public class ConstantsPortsTest extends AbstractComsSetup {
|
||||
*/
|
||||
@Test
|
||||
public void testRelayChannels() {
|
||||
assertEquals(4, SensorBase.kRelayChannels);
|
||||
assertEquals(4, SensorUtil.kRelayChannels);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -78,7 +78,7 @@ public class ConstantsPortsTest extends AbstractComsSetup {
|
||||
*/
|
||||
@Test
|
||||
public void testPDPChannels() {
|
||||
assertEquals(16, SensorBase.kPDPChannels);
|
||||
assertEquals(16, SensorUtil.kPDPChannels);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -86,7 +86,7 @@ public class ConstantsPortsTest extends AbstractComsSetup {
|
||||
*/
|
||||
@Test
|
||||
public void testPDPModules() {
|
||||
assertEquals(63, SensorBase.kPDPModules);
|
||||
assertEquals(63, SensorUtil.kPDPModules);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -94,6 +94,6 @@ public class ConstantsPortsTest extends AbstractComsSetup {
|
||||
*/
|
||||
@Test
|
||||
public void testPCMModules() {
|
||||
assertEquals(63, SensorBase.kPCMModules);
|
||||
assertEquals(63, SensorUtil.kPCMModules);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user