mirror of
https://github.com/jketterl/openwebrx.git
synced 2025-12-06 07:12:09 +01:00
28 lines
687 B
Python
28 lines
687 B
Python
from pycsdr.modules import Convert
|
|
from pycsdr.types import Format
|
|
from csdr.chain.demodulator import ServiceDemodulator
|
|
from owrx.adsb.dump1090 import Dump1090Module, RawDeframer
|
|
from owrx.adsb.modes import ModeSParser
|
|
|
|
|
|
class Dump1090(ServiceDemodulator):
|
|
def __init__(self):
|
|
workers = [
|
|
Convert(Format.COMPLEX_FLOAT, Format.COMPLEX_SHORT),
|
|
Dump1090Module(),
|
|
RawDeframer(),
|
|
ModeSParser(),
|
|
]
|
|
|
|
super().__init__(workers)
|
|
pass
|
|
|
|
def getFixedAudioRate(self) -> int:
|
|
return 2400000
|
|
|
|
def isSecondaryFftShown(self):
|
|
return False
|
|
|
|
def supportsSquelch(self) -> bool:
|
|
return False
|