Fixes after MAX IV experiment
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user