Skip to content

Commit

Permalink
Merge pull request #821 from darksidelemm/testing
Browse files Browse the repository at this point in the history
Add -XDATA onto type when logging imet sondes
  • Loading branch information
darksidelemm authored Oct 2, 2023
2 parents d2000ab + 5fa3605 commit dc32da4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion auto_rx/autorx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# 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
Expand Down
3 changes: 3 additions & 0 deletions auto_rx/autorx/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,9 @@ def write_telemetry(self, telemetry):
_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))
Expand Down
4 changes: 4 additions & 0 deletions auto_rx/autorx/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down Expand Up @@ -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":
Expand Down

0 comments on commit dc32da4

Please sign in to comment.