2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-28 20:53:35 +08:00

dds: fix asf_to_amplitude

This commit is contained in:
dhslichter 2016-06-03 23:01:59 -04:00 committed by Sebastien Bourdeauducq
parent e9a8c4b540
commit 98ae779941

View File

@ -134,7 +134,7 @@ class _DDSGeneric:
def asf_to_amplitude(self, asf):
"""Returns the amplitude corresponding to the given amplitude scale
factor."""
return round(amplitude*0x0fff)
return asf/0x0fff
@kernel
def init(self):