forked from M-Labs/artiq
1
0
Fork 0

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
1 changed files with 1 additions and 1 deletions

View File

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