openwebrx-clone/owrx/source/rtl_sdr.py

16 lines
452 B
Python
Raw Normal View History

from .connector import ConnectorSource
from owrx.command import Flag, Option
class RtlSdrSource(ConnectorSource):
2019-12-31 18:14:05 +00:00
def getCommandMapper(self):
return (
super()
.getCommandMapper()
.setBase("rtl_connector")
.setMappings({"bias_tee": Flag("-b"), "direct_sampling": Option("-e")})
2020-03-26 12:33:32 +00:00
)
def getEventNames(self):
return super().getEventNames() + ["bias_tee", "direct_sampling"]