2019-12-27 23:33:27 +00:00
|
|
|
from owrx.command import Flag
|
2019-12-21 19:58:28 +00:00
|
|
|
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)
|
2019-12-28 00:24:07 +00:00
|
|
|
self.getCommandMapper().setMappings({"bias_tee": Flag("-t biastee=true")})
|
2019-12-27 23:33:27 +00:00
|
|
|
|
2019-12-21 19:58:28 +00:00
|
|
|
def getDriver(self):
|
|
|
|
return "airspy"
|
|
|
|
|
|
|
|
def getEventNames(self):
|
|
|
|
return super().getEventNames() + ["bias_tee"]
|