mirror of https://github.com/m-labs/artiq.git
dds: fix asf_to_amplitude
This commit is contained in:
parent
e9a8c4b540
commit
98ae779941
|
@ -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