Perseus SDR HF receiver first support

This commit is contained in:
Andrea Montefusco
2020-03-15 17:24:36 +01:00
parent c387fe0fe9
commit 97cb51d990
3 changed files with 104 additions and 1 deletions

31
owrx/source/perseussdr.py Normal file
View File

@ -0,0 +1,31 @@
from .direct import DirectSource
from owrx.command import Flag, Option
#
# perseustest -s 768000 -u 0 -f 14150000 -r-|csdr convert_s8_f|nmux --bufsize 192512 --bufcnt 260 --port 35989 --address 127.0.0.1
# perseustest -a -t0 -o -
# perseustest -d 9 -a -t 100000 -o - -s 768000 -u 0 -f 14150000 -r-
class PerseussdrSource(DirectSource):
def getCommandMapper(self):
return super().getCommandMapper().setBase("perseustest -p -d -1 -a -t 100000 -o - ").setMappings(
{
"samp_rate": Option("-s"),
"tuner_freq": Option("-f"),
"rf_gain": Option("-u"),
"lna_gain": Option("-g"),
"rf_amp": Option("-x"),
}
).setStatic("-r-")
def getEventNames(self):
return super().getEventNames() + [
"lna_gain",
"rf_amp",
]
def getFormatConversion(self):
# return ["csdr convert_s24_f --bigendian"]
# return ["csdr convert_s24_f", "csdr gain_ff 20"]
return ["csdr gain_ff 20"]