mirror of
https://github.com/jketterl/openwebrx.git
synced 2025-12-06 07:12:09 +01:00
more work on the empty mode
This commit is contained in:
parent
f7bb1427cc
commit
3d73a0c41f
|
|
@ -554,7 +554,7 @@ class DspManager(SdrSourceEventClient, ClientDemodulatorSecondaryDspEventClient)
|
||||||
elif demod == "freedv":
|
elif demod == "freedv":
|
||||||
from csdr.chain.freedv import FreeDV
|
from csdr.chain.freedv import FreeDV
|
||||||
return FreeDV()
|
return FreeDV()
|
||||||
elif demod == "none":
|
elif demod == "empty":
|
||||||
from csdr.chain.analog import Empty
|
from csdr.chain.analog import Empty
|
||||||
return Empty()
|
return Empty()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,9 @@ class Mode:
|
||||||
return self.modulation
|
return self.modulation
|
||||||
|
|
||||||
|
|
||||||
|
EmptyMode = Mode("empty", "Empty")
|
||||||
|
|
||||||
|
|
||||||
class AnalogMode(Mode):
|
class AnalogMode(Mode):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
@ -45,7 +48,10 @@ class DigitalMode(Mode):
|
||||||
self.underlying = underlying
|
self.underlying = underlying
|
||||||
|
|
||||||
def get_underlying_mode(self):
|
def get_underlying_mode(self):
|
||||||
return Modes.findByModulation(self.underlying[0])
|
mode = Modes.findByModulation(self.underlying[0])
|
||||||
|
if mode is None:
|
||||||
|
mode = EmptyMode
|
||||||
|
return mode
|
||||||
|
|
||||||
def get_bandpass(self):
|
def get_bandpass(self):
|
||||||
if self.bandpass is not None:
|
if self.bandpass is not None:
|
||||||
|
|
@ -152,7 +158,7 @@ class Modes(object):
|
||||||
DigitalMode(
|
DigitalMode(
|
||||||
"adsb",
|
"adsb",
|
||||||
"ADS-B",
|
"ADS-B",
|
||||||
underlying=["none"],
|
underlying=["empty"],
|
||||||
bandpass=Bandpass(-1e6, 1e6),
|
bandpass=Bandpass(-1e6, 1e6),
|
||||||
requirements=["dump1090"],
|
requirements=["dump1090"],
|
||||||
squelch=False,
|
squelch=False,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue