[hal,wpilib] Remove a ton of things related to the FPGA (#7846)

Co-authored-by: Gold856 <117957790+Gold856@users.noreply.github.com>
This commit is contained in:
Thad House
2026-04-17 19:38:25 -07:00
committed by GitHub
parent fdb454a6b1
commit 6cb6903780
73 changed files with 69 additions and 1834 deletions

View File

@@ -62,34 +62,4 @@ TEST(AnalogInputSimTest, SetVoltage) {
}
}
TEST(AnalogInputSimTest, SetOverSampleBits) {
HAL_Initialize(500, 0);
AnalogInput input{5};
AnalogInputSim sim(input);
IntCallback callback;
auto cb = sim.RegisterOversampleBitsCallback(callback.GetCallback(), false);
input.SetOversampleBits(3504);
EXPECT_EQ(3504, sim.GetOversampleBits());
EXPECT_EQ(3504, input.GetOversampleBits());
EXPECT_TRUE(callback.WasTriggered());
EXPECT_EQ(3504, callback.GetLastValue());
}
TEST(AnalogInputSimTest, SetAverageBits) {
HAL_Initialize(500, 0);
AnalogInput input{5};
AnalogInputSim sim(input);
IntCallback callback;
auto cb = sim.RegisterAverageBitsCallback(callback.GetCallback(), false);
input.SetAverageBits(3504);
EXPECT_EQ(3504, sim.GetAverageBits());
EXPECT_EQ(3504, input.GetAverageBits());
EXPECT_TRUE(callback.WasTriggered());
EXPECT_EQ(3504, callback.GetLastValue());
}
} // namespace wpi::sim