[hal, wpilib] Incorporate pneumatic control type into wpilibc/j (#3728)

This commit is contained in:
Thad House
2021-11-23 20:32:02 -08:00
committed by GitHub
parent 9aba2b7583
commit b156db400d
35 changed files with 693 additions and 216 deletions

View File

@@ -35,7 +35,7 @@ class PCMTest : public testing::Test {
frc::DigitalInput m_fakeSolenoid2{TestBench::kFakeSolenoid2Channel};
void Reset() {
m_pneumaticsModule.SetClosedLoopControl(false);
m_pneumaticsModule.DisableCompressor();
m_fakePressureSwitch.Set(false);
}
};
@@ -46,7 +46,7 @@ class PCMTest : public testing::Test {
TEST_F(PCMTest, PressureSwitch) {
Reset();
m_pneumaticsModule.SetClosedLoopControl(true);
m_pneumaticsModule.EnableCompressorDigital();
// Turn on the compressor
m_fakePressureSwitch.Set(true);