openwebrx-clone/csdr/chain/ssb.py

18 lines
452 B
Python
Raw Normal View History

2021-07-19 22:57:43 +00:00
from csdr.chain import Chain
from pycsdr.modules import RealPart, Agc, Convert
from pycsdr.types import Format
class Ssb(Chain):
2021-07-19 22:57:43 +00:00
def __init__(self):
workers = [
RealPart(),
# empty chain as placeholder for the "last decimation"
Chain(),
Agc(Format.FLOAT),
]
super().__init__(*workers)
def setLastDecimation(self, decimation: Chain):
self.replace(1, decimation)