openwebrx-clone/owrx/source/rtl_sdr.py
2020-04-01 23:37:40 +02:00

16 lines
452 B
Python

from .connector import ConnectorSource
from owrx.command import Flag, Option
class RtlSdrSource(ConnectorSource):
def getCommandMapper(self):
return (
super()
.getCommandMapper()
.setBase("rtl_connector")
.setMappings({"bias_tee": Flag("-b"), "direct_sampling": Option("-e")})
)
def getEventNames(self):
return super().getEventNames() + ["bias_tee", "direct_sampling"]