2019-12-21 19:58:28 +00:00
|
|
|
from .connector import ConnectorSource
|
2020-03-26 12:33:32 +00:00
|
|
|
from owrx.command import Flag
|
2019-12-21 19:58:28 +00:00
|
|
|
|
|
|
|
|
|
|
|
class RtlSdrSource(ConnectorSource):
|
2019-12-31 18:14:05 +00:00
|
|
|
def getCommandMapper(self):
|
2020-03-26 12:33:32 +00:00
|
|
|
return super().getCommandMapper().setBase("rtl_connector").setMappings(
|
|
|
|
{
|
|
|
|
"bias_tee": Flag("-b")
|
|
|
|
}
|
|
|
|
)
|
|
|
|
|
|
|
|
def getEventNames(self):
|
|
|
|
return super().getEventNames() + ["bias_tee"]
|