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

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