Revert "Merge remote-tracking branch 'jketterl/develop' into kiwisdr-dev"
This reverts commit c3b81a754e
.
This commit is contained in:
@ -17,10 +17,10 @@ class FifiSdrSource(DirectSource):
|
||||
return super().getEventNames() + ["device"]
|
||||
|
||||
def getFormatConversion(self):
|
||||
return ["csdr convert_s16_f", "csdr gain_ff 5"]
|
||||
return ["csdr convert_s16_f", "csdr gain_ff 30"]
|
||||
|
||||
def sendRockProgFrequency(self, frequency):
|
||||
process = Popen(["rockprog", "--vco", "-w", "--freq={}".format(frequency / 1E6)])
|
||||
process = Popen(["rockprog", "--vco", "-w", "--", "freq={}".format(frequency / 1E6)])
|
||||
process.communicate()
|
||||
rc = process.wait()
|
||||
if rc != 0:
|
||||
|
@ -1,21 +0,0 @@
|
||||
from owrx.command import Option
|
||||
from .direct import DirectSource
|
||||
from subprocess import Popen
|
||||
|
||||
import logging
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class FileSource(DirectSource):
|
||||
def getCommandMapper(self):
|
||||
file = "CQWW_CW_2005.fs96k.cf7040.iq.s16.dat"
|
||||
bytes_per_sample = 4
|
||||
#sdrProps = getProps()
|
||||
#srate = sdrProps["samp_rate"]
|
||||
srate = 96000
|
||||
cmd = "(while true; do cat {fn}; done) | csdr flowcontrol {sr} 20".format(fn=file,sr=srate*bytes_per_sample*1.05)
|
||||
return super().getCommandMapper().setBase(cmd)
|
||||
|
||||
def getFormatConversion(self):
|
||||
return ["csdr convert_s16_f --bigendian", "csdr iq_swap_ff"]
|
Reference in New Issue
Block a user