Upload speed field to sondehub

pull/171/head
Mark Jessop 2023-07-08 10:21:49 +09:30
rodzic dad39621f0
commit c7c5a6eb5d
4 zmienionych plików z 16 dodań i 2 usunięć

Wyświetl plik

@ -1 +1 @@
__version__ = "0.3.10"
__version__ = "0.3.11"

Wyświetl plik

@ -203,6 +203,15 @@ class SondehubAmateurUploader(object):
if telemetry["battery_voltage"] >= 0.0:
_output["batt"] = telemetry["battery_voltage"]
if "speed" in telemetry:
_output["speed"] = telemetry["speed"]
if "vel_h" in telemetry:
_output["vel_h"] = telemetry["vel_h"]
if "vel_v" in telemetry:
_output["vel_v"] = telemetry["vel_v"]
# Handle the additional SNR and frequency estimation if we have it
if "snr" in telemetry:
_output["snr"] = telemetry["snr"]

Wyświetl plik

@ -253,6 +253,11 @@ def main():
_logfile.flush()
logging.info(f"Decoded Binary Packet (SNR {demod_stats.snr:.1f} dB): {_decoded['ukhas_str']}")
# Remove a few fields from the packet before printing.
_temp_packet = _decoded.copy()
_temp_packet.pop('packet_format')
_temp_packet.pop('ukhas_str')
logging.debug(f"Binary Packet Contents: {_temp_packet}")
except Exception as e:
logging.error(f"Decode Failed: {str(e)}")

Wyświetl plik

@ -1,6 +1,6 @@
[tool.poetry]
name = "horusdemodlib"
version = "0.3.10"
version = "0.3.11"
description = "Project Horus HAB Telemetry Demodulators"
authors = ["Mark Jessop"]
license = "LGPL-2.1-or-later"