mirror of https://github.com/m-labs/artiq.git
Update artiq/coredevice/phaser.py
Co-authored-by: Robert Jördens <rj@quartiq.de>
This commit is contained in:
parent
c0581178d6
commit
56c59e38f0
|
@ -1148,7 +1148,7 @@ class PhaserChannel:
|
||||||
b1 >= COEFF_MAX or b1 < -COEFF_MAX):
|
b1 >= COEFF_MAX or b1 < -COEFF_MAX):
|
||||||
raise ValueError("high gains")
|
raise ValueError("high gains")
|
||||||
|
|
||||||
forward_gain = (b0 + b1) * (DATA_MAX - NORM)
|
forward_gain = (b0 + b1) * (1 << SERVO_DATA_WIDTH - 1 - SERVO_COEFF_SHIFT)
|
||||||
effective_offset = int(round(DATA_MAX * y_offset + forward_gain * x_offset))
|
effective_offset = int(round(DATA_MAX * y_offset + forward_gain * x_offset))
|
||||||
|
|
||||||
self.set_iir_mu(profile, b0, b1, a1, effective_offset)
|
self.set_iir_mu(profile, b0, b1, a1, effective_offset)
|
||||||
|
|
Loading…
Reference in New Issue