mirror of
https://github.com/jketterl/openwebrx.git
synced 2026-04-20 22:05:13 +00:00
add ssb chain
This commit is contained in:
parent
be093b8b05
commit
2bcb62e706
2 changed files with 23 additions and 0 deletions
19
csdr/chain/ssb.py
Normal file
19
csdr/chain/ssb.py
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
from csdr.chain import Chain
|
||||
from csdr.chain.demodulator import Demodulator
|
||||
from pycsdr.modules import RealPart, Agc, Convert
|
||||
from pycsdr.types import Format
|
||||
|
||||
|
||||
class Ssb(Demodulator):
|
||||
def __init__(self):
|
||||
workers = [
|
||||
RealPart(),
|
||||
# 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):
|
||||
self.replace(1, decimation)
|
||||
Loading…
Add table
Add a link
Reference in a new issue