Commit f661c84b authored by d11's avatar d11

Test diaphragm position before updating

parent 249f7c8f
......@@ -349,19 +349,31 @@ void D11Setting::updateDiaphragmPosition5Setpoint() {
}
void D11Setting::updateDiaphragmPosition2() {
diaphragmPosition2.update(m_CollimationSetting->diaphragmPosition2());
int32 position = m_CollimationSetting->diaphragmPosition2();
if (position > 0) {
diaphragmPosition2.update(position);
}
}
void D11Setting::updateDiaphragmPosition3() {
diaphragmPosition3.update(m_CollimationSetting->diaphragmPosition3());
int32 position = m_CollimationSetting->diaphragmPosition3();
if (position > 0) {
diaphragmPosition3.update(position);
}
}
void D11Setting::updateDiaphragmPosition4() {
diaphragmPosition4.update(m_CollimationSetting->diaphragmPosition4());
int32 position = m_CollimationSetting->diaphragmPosition4();
if (position > 0) {
diaphragmPosition4.update(position);
}
}
void D11Setting::updateDiaphragmPosition5() {
diaphragmPosition5.update(m_CollimationSetting->diaphragmPosition5());
int32 position = m_CollimationSetting->diaphragmPosition5();
if (position > 0) {
diaphragmPosition5.update(position);
}
}
void D11Setting::calculateQ() {
......
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