openwebrx-clone/owrx/source/airspy.py
2019-12-28 01:24:07 +01:00

15 lines
414 B
Python

from owrx.command import Flag
from .soapy import SoapyConnectorSource
class AirspySource(SoapyConnectorSource):
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"]