From 5fa360534ea3df7f8e6af6c000b901accadc83d9 Mon Sep 17 00:00:00 2001 From: Mark Jessop Date: Mon, 2 Oct 2023 16:14:56 +1030 Subject: [PATCH] Add -XDATA onto type when logging imet sondes --- auto_rx/autorx/__init__.py | 2 +- auto_rx/autorx/logger.py | 3 +++ auto_rx/autorx/utils.py | 4 ++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/auto_rx/autorx/__init__.py b/auto_rx/autorx/__init__.py index b171312..e7e21f9 100644 --- a/auto_rx/autorx/__init__.py +++ b/auto_rx/autorx/__init__.py @@ -12,7 +12,7 @@ from queue import Queue # MINOR - New sonde type support, other fairly big changes that may result in telemetry or config file incompatability issus. # PATCH - Small changes, or minor feature additions. -__version__ = "1.7.1-beta2" +__version__ = "1.7.1-beta3" # Global Variables diff --git a/auto_rx/autorx/logger.py b/auto_rx/autorx/logger.py index 1b0fa29..e00c40d 100644 --- a/auto_rx/autorx/logger.py +++ b/auto_rx/autorx/logger.py @@ -199,6 +199,9 @@ class TelemetryLogger(object): _id = telemetry["id"] _type = telemetry["type"] + if 'aux' in telemetry: + _type += "-XDATA" + # If there is no log open for the current ID check to see if there is an existing (closed) log file, and open it. if _id not in self.open_logs: _search_string = os.path.join(self.log_directory, "*%s_*_sonde.log" % (_id)) diff --git a/auto_rx/autorx/utils.py b/auto_rx/autorx/utils.py index f9a7cc3..9c789f0 100644 --- a/auto_rx/autorx/utils.py +++ b/auto_rx/autorx/utils.py @@ -196,6 +196,8 @@ def short_type_lookup(type_name): return "Lockheed Martin LMS6-1680" elif type_name == "IMET": return "Intermet Systems iMet-1/4" + elif type_name == "IMET-XDATA": + return "Intermet Systems iMet-1/4 + XDATA" elif type_name == "IMET5": return "Intermet Systems iMet-5x" elif type_name == "MEISEI": @@ -238,6 +240,8 @@ def short_short_type_lookup(type_name): return "LMS6-1680" elif type_name == "IMET": return "iMet-1/4" + elif type_name == "IMET-XDATA": + return "iMet-1/4" elif type_name == "IMET5": return "iMet-5x" elif type_name == "MEISEI":