2023-08-22 19:59:00 +02:00
|
|
|
from pycsdr.modules import Convert
|
|
|
|
|
from pycsdr.types import Format
|
|
|
|
|
from csdr.chain.demodulator import ServiceDemodulator
|
2023-08-23 00:40:24 +02:00
|
|
|
from owrx.adsb.dump1090 import Dump1090Module, RawDeframer
|
|
|
|
|
from owrx.adsb.modes import ModeSParser
|
2023-08-22 19:59:00 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
class Dump1090(ServiceDemodulator):
|
|
|
|
|
def __init__(self):
|
|
|
|
|
workers = [
|
|
|
|
|
Convert(Format.COMPLEX_FLOAT, Format.COMPLEX_SHORT),
|
2023-08-22 21:16:38 +02:00
|
|
|
Dump1090Module(),
|
|
|
|
|
RawDeframer(),
|
|
|
|
|
ModeSParser(),
|
2023-08-22 19:59:00 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
super().__init__(workers)
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
def getFixedAudioRate(self) -> int:
|
|
|
|
|
return 2400000
|
2023-08-24 22:00:59 +02:00
|
|
|
|
|
|
|
|
def isSecondaryFftShown(self):
|
|
|
|
|
return False
|
2023-09-16 06:14:36 +02:00
|
|
|
|
|
|
|
|
def supportsSquelch(self) -> bool:
|
|
|
|
|
return False
|