Commit 2f1f34d1 authored by yannick legoc's avatar yannick legoc
Browse files

Added tolerance in collimation values of D22AutoConfig

parent f17e8e68
......@@ -239,7 +239,13 @@ void AutoConfig::apply() {
m_d22settings->detPosition.setpoint = distance.get(i);
m_d22settings->wavelengthPosition.setpoint = wavelength.get(i);
m_d22settings->colSetupPosition.setpoint = collimation.get(i); // check with tolerance
// Check with tolerance.
for (float64 value : m_collimationValues) {
if (abs(value - collimation.get(i)) < 0.1) {
m_d22settings->colSetupPosition.setpoint = value;
break;
}
}
}
}
}
......
......@@ -86,6 +86,7 @@ private:
ControllerPtr<remotelsssimulation::RemoteLSSSimulation> m_simulation;
DriverPtr<driver::NullDriver> m_driver;
utilities::CountSpy* m_countSpy;
std::vector<float64> m_collimationValues = { 2.0, 2.8, 4.0, 5.6, 8.0, 11.2, 14.4, 17.6 };
};
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment