void BioXASSSRLMonochromator::setM1MirrorPitchControl(AMControl *newControl)
{
	if (m1Pitch_ != newControl) {
		m1Pitch_ = newControl;
		encoderEnergy_->setM1MirrorPitchControl(m1Pitch_);
		stepEnergy_->setM1MirrorPitchControl(m1Pitch_);
		emit m1MirrorPitchControlChanged(m1Pitch_);
	}
}
Exemplo n.º 2
0
void BioXASSSRLMonochromator::setM1MirrorPitchControl(AMControl *newControl)
{
	if (m1Pitch_ != newControl) {

		removeChildControl(m1Pitch_);

		m1Pitch_ = newControl;

		addChildControl(m1Pitch_);

		updateStepEnergy();
		updateEncoderEnergy();

		emit m1MirrorPitchControlChanged(m1Pitch_);
	}
}