Fixes after MAX IV experiment

This commit is contained in:
2024-02-05 17:18:16 +01:00
parent 91a0960303
commit babb1a5c8d
151 changed files with 4395 additions and 1477 deletions

View File

@@ -702,3 +702,27 @@ TEST_CASE("DiffractionExperiment_OmegaStep","[DiffractionExperiment]") {
REQUIRE(x.GetOmegaStep());
REQUIRE(!msg.goniometer.empty());
}
TEST_CASE("DiffractionExperiment_ConversionOnFPGA","[DiffractionExperiment]") {
DiffractionExperiment x;
x.Mode(DetectorMode::Conversion);
REQUIRE(x.IsConversionOnFPGA()); // conversion on FPGA must be default true!
x.Mode(DetectorMode::Raw);
REQUIRE(!x.IsConversionOnFPGA()); // conversion on FPGA off for raw mode
x.Mode(DetectorMode::PedestalG0);
REQUIRE(!x.IsConversionOnFPGA()); // conversion on FPGA off for pedestal modes
x.Mode(DetectorMode::PedestalG1);
REQUIRE(!x.IsConversionOnFPGA()); // conversion on FPGA off for pedestal modes
x.Mode(DetectorMode::PedestalG2);
REQUIRE(!x.IsConversionOnFPGA()); // conversion on FPGA off for pedestal modes
x.Mode(DetectorMode::Conversion).ConversionOnFPGA(false);
REQUIRE(!x.IsConversionOnFPGA()); // conversion on FPGA turned explicitly off
x.Mode(DetectorMode::Conversion).ConversionOnFPGA(true);
REQUIRE(x.IsConversionOnFPGA()); // conversion on FPGA back on
}