update to use new sddc_connector

This commit is contained in:
Jakob Ketterl 2020-11-27 18:39:10 +01:00
parent 8bb6e91597
commit b5d56eaec2
2 changed files with 6 additions and 15 deletions

View File

@ -68,7 +68,7 @@ class FeatureDetector(object):
"red_pitaya": ["soapy_connector", "soapy_red_pitaya"], "red_pitaya": ["soapy_connector", "soapy_red_pitaya"],
"radioberry": ["soapy_connector", "soapy_radioberry"], "radioberry": ["soapy_connector", "soapy_radioberry"],
"fcdpp": ["soapy_connector", "soapy_fcdpp"], "fcdpp": ["soapy_connector", "soapy_fcdpp"],
"rf103": ["rf103_sdr"], "rf103": ["sddc_connector"],
"hpsdr": ["hpsdr_connector"], "hpsdr": ["hpsdr_connector"],
# optional features and their requirements # optional features and their requirements
"digital_voice_digiham": ["digiham", "sox"], "digital_voice_digiham": ["digiham", "sox"],
@ -495,8 +495,8 @@ class FeatureDetector(object):
""" """
return self.command_is_runnable("dream --help", 0) return self.command_is_runnable("dream --help", 0)
def has_rf103_sdr(self): def has_sddc_connector(self):
return self.command_is_runnable("rf103_sdr") return self.command_is_runnable("sddc_connector")
def has_hpsdr_connector(self): def has_hpsdr_connector(self):
""" """

View File

@ -1,15 +1,6 @@
from owrx.source.direct import DirectSource from owrx.source.connector import ConnectorSource
from owrx.command import Option
import time
class Rf103Source(DirectSource): class Rf103Source(ConnectorSource):
def getCommandMapper(self): def getCommandMapper(self):
return super().getCommandMapper().setBase("rf103_sdr -i /home/jakob/workspace/RF103/rx888.img").setMappings({ return super().getCommandMapper().setBase("sddc_connector")
"samp_rate": Option("-s"),
"center_freq": Option("-f"),
"attenuation": Option("-a"),
})
def sleepOnRestart(self):
time.sleep(1)