kopia lustrzana https://github.com/projecthorus/horusdemodlib
Upload speed field to sondehub
rodzic
dad39621f0
commit
c7c5a6eb5d
|
@ -1 +1 @@
|
|||
__version__ = "0.3.10"
|
||||
__version__ = "0.3.11"
|
||||
|
|
|
@ -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"]
|
||||
|
|
|
@ -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)}")
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
Ładowanie…
Reference in New Issue