kopia lustrzana https://github.com/projecthorus/radiosonde_auto_rx
Merge pull request #6 from AstroTaka/testing
test_sdr of SpyServer does not use 401.5MHz fixed frequencypull/731/head
commit
9ef554920e
|
@ -801,7 +801,7 @@ def read_auto_rx_config(filename, no_sdr_test=False):
|
|||
sdr_port=auto_rx_config["sdr_port"],
|
||||
ss_iq_path=auto_rx_config["ss_iq_path"],
|
||||
ss_power_path=auto_rx_config["ss_power_path"],
|
||||
check_freq=auto_rx_config["min_freq"],
|
||||
check_freq=auto_rx_config["min_freq"] * 1e6,
|
||||
)
|
||||
|
||||
if not _sdr_ok:
|
||||
|
|
|
@ -772,7 +772,7 @@ class SondeScanner(object):
|
|||
sdr_hostname = self.sdr_hostname,
|
||||
sdr_port = self.sdr_port,
|
||||
ss_iq_path = self.ss_iq_path,
|
||||
check_freq = self.min_freq
|
||||
check_freq = self.min_freq * 1e6
|
||||
)
|
||||
|
||||
if not _sdr_ok:
|
||||
|
@ -835,7 +835,7 @@ class SondeScanner(object):
|
|||
sdr_hostname = self.sdr_hostname,
|
||||
sdr_port = self.sdr_port,
|
||||
ss_iq_path = self.ss_iq_path,
|
||||
check_freq = self.min_freq
|
||||
check_freq = self.min_freq * 1e6
|
||||
)
|
||||
|
||||
if not _sdr_ok:
|
||||
|
|
|
@ -21,7 +21,7 @@ def test_sdr(
|
|||
sdr_port = 5555,
|
||||
ss_iq_path = "./ss_iq",
|
||||
ss_power_path = "./ss_power",
|
||||
check_freq = 401.5
|
||||
check_freq = 401500000
|
||||
):
|
||||
"""
|
||||
Test the prescence / functionality of a SDR.
|
||||
|
@ -69,7 +69,7 @@ def test_sdr(
|
|||
_cmd = (
|
||||
f"timeout 10 " # Add a timeout, because connections to non-existing IPs seem to block.
|
||||
f"{ss_iq_path} "
|
||||
f"-f {int(check_freq * 1e6)} "
|
||||
f"-f {check_freq} "
|
||||
f"-s 48000 "
|
||||
f"-r {sdr_hostname} -q {sdr_port} -n 48000 - > /dev/null 2> /dev/null"
|
||||
)
|
||||
|
|
Ładowanie…
Reference in New Issue