openwebrx-clone/owrx/source/airspy.py

17 lines
436 B
Python
Raw Normal View History

2019-12-27 23:33:27 +00:00
from owrx.command import Flag
from .soapy import SoapyConnectorSource
class AirspySource(SoapyConnectorSource):
2019-12-27 23:33:27 +00:00
def __init__(self, id, props, port):
super().__init__(id, props, port)
self.getCommandMapper().setMappings({
"bias_tee": Flag("-t biastee=true")
})
def getDriver(self):
return "airspy"
def getEventNames(self):
return super().getEventNames() + ["bias_tee"]