fix overlooked bias tee in airspy
This commit is contained in:
parent
8371d3b67a
commit
f92c49cee6
@ -1,25 +1,16 @@
|
|||||||
|
from owrx.command import Flag
|
||||||
from .soapy import SoapyConnectorSource
|
from .soapy import SoapyConnectorSource
|
||||||
|
|
||||||
|
|
||||||
class AirspySource(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):
|
def getDriver(self):
|
||||||
return "airspy"
|
return "airspy"
|
||||||
|
|
||||||
def getEventNames(self):
|
def getEventNames(self):
|
||||||
return super().getEventNames() + ["bias_tee"]
|
return super().getEventNames() + ["bias_tee"]
|
||||||
|
|
||||||
'''
|
|
||||||
def getCommand(self):
|
|
||||||
cmd = [
|
|
||||||
"soapy_connector -p {port} -c {controlPort}".format(port=self.port, controlPort=self.controlPort)
|
|
||||||
+ ' -s {samp_rate} -f {tuner_freq} -g "{rf_gain}" -P {ppm} -d "{device}"'
|
|
||||||
]
|
|
||||||
values = self.getCommandValues()
|
|
||||||
if values["iqswap"]:
|
|
||||||
cmd += " -i"
|
|
||||||
if self.rtlProps["rtltcp_compat"]:
|
|
||||||
cmd += " -r"
|
|
||||||
if values["bias_tee"]:
|
|
||||||
cmd += " -t biastee=true"
|
|
||||||
return cmd
|
|
||||||
'''
|
|
||||||
|
Loading…
Reference in New Issue
Block a user