Commit 1ab9f642 authored by d11's avatar d11

test for bad position from diaphragm

parent 711fd03b
......@@ -478,19 +478,31 @@ void D11CollimationSetting::updateCrossSection() {
void D11CollimationSetting::updateDisk2Position() {
diaphragmPosition2.update(m_Diaphragm->positionToIndice(m_Disk2-> position()));
int32 position = m_Diaphragm->positionToIndice(m_Disk2->position());
if (position > 0) {
diaphragmPosition2.update(position);
}
}
void D11CollimationSetting::updateDisk3Position() {
diaphragmPosition3.update(m_Diaphragm->positionToIndice(m_Disk3->position()));
int32 position = m_Diaphragm->positionToIndice(m_Disk3->position());
if (position > 0) {
diaphragmPosition3.update(position);
}
}
void D11CollimationSetting::updateDisk4Position() {
diaphragmPosition4.update(m_Diaphragm->positionToIndice(m_Disk4->position()));
int32 position = m_Diaphragm->positionToIndice(m_Disk4->position());
if (position > 0) {
diaphragmPosition4.update(position);
}
}
void D11CollimationSetting::updateDisk5Position() {
diaphragmPosition5.update(m_Diaphragm->positionToIndice(m_Disk5->position()));
int32 position = m_Diaphragm->positionToIndice(m_Disk5->position());
if (position > 0) {
diaphragmPosition5.update(position);
}
}
......
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