mirror of
https://github.com/ha7ilm/openwebrx.git
synced 2026-04-04 22:17:34 +00:00
add am demodulator chain
This commit is contained in:
parent
f03a6c127e
commit
eb76ec4a9f
2 changed files with 31 additions and 3 deletions
23
csdr/chain/am.py
Normal file
23
csdr/chain/am.py
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
from csdr.chain import Chain
|
||||
from csdr.chain.demodulator import Demodulator
|
||||
from pycsdr.modules import AmDemod, DcBlock, Agc, Convert
|
||||
from pycsdr.types import Format
|
||||
|
||||
|
||||
class Am(Demodulator):
|
||||
def __init__(self):
|
||||
workers = [
|
||||
AmDemod(),
|
||||
DcBlock(),
|
||||
# empty chain as placeholder for the "last decimation"
|
||||
Chain(),
|
||||
Agc(Format.FLOAT),
|
||||
Convert(Format.FLOAT, Format.SHORT),
|
||||
]
|
||||
|
||||
super().__init__(*workers)
|
||||
|
||||
def setLastDecimation(self, decimation: Chain):
|
||||
# TODO: build api to replace workers
|
||||
# TODO: replace placeholder
|
||||
pass
|
||||
Loading…
Add table
Add a link
Reference in a new issue