Add --imet1 option to imet decoder when in wideband mode

pull/804/head
Mark Jessop 2023-08-15 13:17:51 +09:30
rodzic bcf6b328e5
commit 0ff2553a7d
1 zmienionych plików z 6 dodań i 1 usunięć

Wyświetl plik

@ -549,8 +549,13 @@ class SondeDecoder(object):
if self.save_decode_iq:
decode_cmd += f" tee {self.save_decode_iq_path} |"
if self.wideband_sondes:
_wideband = "--imet1"
else:
_wideband = ""
# iMet-4 (IMET1RS) decoder
decode_cmd += f"./imet4iq --iq 0.0 --lpIQ --dc - {_sample_rate} 16 --json 2>/dev/null"
decode_cmd += f"./imet4iq --iq 0.0 --lpIQ --dc - {_sample_rate} 16 --json {_wideband} 2>/dev/null"
elif self.sonde_type == "IMET5":
# iMet-54 Sondes