openwebrx-clone/owrx/source/rtl_sdr_soapy.py

14 lines
410 B
Python
Raw Normal View History

from .soapy import SoapyConnectorSource
2020-01-10 19:50:56 +00:00
from owrx.command import Option
class RtlSdrSoapySource(SoapyConnectorSource):
2020-01-10 19:50:56 +00:00
def getCommandMapper(self):
return super().getCommandMapper().setMappings({"direct_sampling": Option("-t direct_samp").setSpacer("=")})
def getDriver(self):
return "rtlsdr"
2020-01-10 19:50:56 +00:00
def getEventNames(self):
return super().getEventNames() + ["direct_sampling"]