2021-07-19 23:32:03 +02:00
|
|
|
from csdr.chain import Chain
|
|
|
|
from pycsdr.modules import AmDemod, DcBlock, Agc, Convert
|
2021-07-20 17:58:32 +02:00
|
|
|
from pycsdr.types import Format, AgcProfile
|
2021-07-19 23:32:03 +02:00
|
|
|
|
|
|
|
|
2021-07-24 22:25:41 +02:00
|
|
|
class Am(Chain):
|
2021-07-19 23:32:03 +02:00
|
|
|
def __init__(self):
|
2021-07-20 17:58:32 +02:00
|
|
|
agc = Agc(Format.FLOAT)
|
|
|
|
agc.setProfile(AgcProfile.SLOW)
|
|
|
|
agc.setInitialGain(200)
|
2021-07-19 23:32:03 +02:00
|
|
|
workers = [
|
|
|
|
AmDemod(),
|
|
|
|
DcBlock(),
|
2021-07-20 17:58:32 +02:00
|
|
|
agc,
|
2021-07-19 23:32:03 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
super().__init__(*workers)
|