18 lines
407 B
Python
18 lines
407 B
Python
from csdr.chain import Chain
|
|
from pycsdr.modules import AmDemod, DcBlock, Agc, Convert
|
|
from pycsdr.types import Format, AgcProfile
|
|
|
|
|
|
class Am(Chain):
|
|
def __init__(self):
|
|
agc = Agc(Format.FLOAT)
|
|
agc.setProfile(AgcProfile.SLOW)
|
|
agc.setInitialGain(200)
|
|
workers = [
|
|
AmDemod(),
|
|
DcBlock(),
|
|
agc,
|
|
]
|
|
|
|
super().__init__(*workers)
|