Removed old RDS stuff.
This commit is contained in:
parent
c625798088
commit
790b68b3da
|
|
@ -2,7 +2,7 @@ from csdr.chain.demodulator import ServiceDemodulator, DialFrequencyReceiver, Fi
|
|||
from csdr.module.toolbox import Rtl433Module, MultimonModule, DumpHfdlModule, DumpVdl2Module, Dump1090Module, AcarsDecModule, RedseaModule
|
||||
from pycsdr.modules import FmDemod, AudioResampler, Convert, Agc, Squelch
|
||||
from pycsdr.types import Format
|
||||
from owrx.toolbox import TextParser, PageParser, SelCallParser, IsmParser, RdsParser
|
||||
from owrx.toolbox import TextParser, PageParser, SelCallParser, IsmParser
|
||||
from owrx.aircraft import HfdlParser, Vdl2Parser, AdsbParser, AcarsParser
|
||||
from owrx.config import Config
|
||||
|
||||
|
|
@ -189,27 +189,3 @@ class AcarsDemodulator(ServiceDemodulator, DialFrequencyReceiver):
|
|||
|
||||
def setDialFrequency(self, frequency: int) -> None:
|
||||
self.parser.setDialFrequency(frequency)
|
||||
|
||||
|
||||
class RdsDemodulator(ServiceDemodulator, DialFrequencyReceiver):
|
||||
def __init__(self):
|
||||
pm = Config.get()
|
||||
self.rbds = pm["wfm_rds_rbds"]
|
||||
self.sampleRate = 171000
|
||||
self.parser = RdsParser()
|
||||
workers = [
|
||||
Convert(Format.FLOAT, Format.SHORT),
|
||||
RedseaModule(self.sampleRate, usa=self.rbds),
|
||||
self.parser,
|
||||
]
|
||||
# Connect all the workers
|
||||
super().__init__(workers)
|
||||
|
||||
def getFixedAudioRate(self) -> int:
|
||||
return self.sampleRate
|
||||
|
||||
def supportsSquelch(self) -> bool:
|
||||
return False
|
||||
|
||||
def setDialFrequency(self, frequency: int) -> None:
|
||||
self.parser.setDialFrequency(frequency)
|
||||
|
|
|
|||
Loading…
Reference in New Issue