forked from M-Labs/artiq
dds: fix asf_to_amplitude
This commit is contained in:
parent
404cf3524c
commit
3c817be213
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue