2019-12-28 00:33:27 +01:00
|
|
|
from owrx.command import Flag
|
2019-12-21 20:58:28 +01:00
|
|
|
from .soapy import SoapyConnectorSource
|
|
|
|
|
|
|
|
|
|
|
|
class AirspySource(SoapyConnectorSource):
|
2019-12-31 19:14:05 +01:00
|
|
|
def getCommandMapper(self):
|
|
|
|
return super().getCommandMapper().setMappings({"bias_tee": Flag("-t biastee=true")})
|
2019-12-28 00:33:27 +01:00
|
|
|
|
2019-12-21 20:58:28 +01:00
|
|
|
def getDriver(self):
|
|
|
|
return "airspy"
|
|
|
|
|
|
|
|
def getEventNames(self):
|
|
|
|
return super().getEventNames() + ["bias_tee"]
|