From 56c59e38f0f4a879be6b04748852e0ef97b5467a Mon Sep 17 00:00:00 2001 From: Norman Krackow Date: Thu, 23 Jun 2022 09:15:50 +0200 Subject: [PATCH] Update artiq/coredevice/phaser.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Robert Jördens --- artiq/coredevice/phaser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artiq/coredevice/phaser.py b/artiq/coredevice/phaser.py index c23fe48e6..ba7a25dd9 100644 --- a/artiq/coredevice/phaser.py +++ b/artiq/coredevice/phaser.py @@ -1148,7 +1148,7 @@ class PhaserChannel: b1 >= COEFF_MAX or b1 < -COEFF_MAX): 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)) self.set_iir_mu(profile, b0, b1, a1, effective_offset)