openwebrx-clone/owrx/source/airspy.py

15 lines
402 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):
def __init__(self, id, props):
super().__init__(id, props)
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
def getDriver(self):
return "airspy"
def getEventNames(self):
return super().getEventNames() + ["bias_tee"]