mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
[hal, wpilib] Incorporate pneumatic control type into wpilibc/j (#3728)
This commit is contained in:
@@ -64,7 +64,7 @@ public class PCMTest extends AbstractComsSetup {
|
||||
|
||||
@Before
|
||||
public void reset() {
|
||||
pcm.setClosedLoopControl(false);
|
||||
pcm.disableCompressor();
|
||||
fakePressureSwitch.set(false);
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@ public class PCMTest extends AbstractComsSetup {
|
||||
public void testPressureSwitch() throws Exception {
|
||||
final double range = 0.5;
|
||||
reset();
|
||||
pcm.setClosedLoopControl(true);
|
||||
pcm.enableCompressorDigital();
|
||||
|
||||
// Turn on the compressor
|
||||
fakePressureSwitch.set(true);
|
||||
|
||||
Reference in New Issue
Block a user