Merge pull request #231 from darksidelemm/testing

Display estimated sonde frequency in web GUI, if available.
pull/234/head
Mark Jessop 2019-10-09 20:08:17 +10:30 zatwierdzone przez GitHub
commit 8e6a09fb88
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 11 dodań i 1 usunięć

Wyświetl plik

@ -17,7 +17,7 @@ except ImportError:
# 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.2.0-beta5"
__version__ = "1.2.0-beta6"
# Global Variables

Wyświetl plik

@ -340,6 +340,16 @@ class WebExporter(object):
_telem = telemetry.copy()
if 'f_centre' in _telem:
# We have an estimate of the sonde's centre frequency from the modem, use this in place of
# the RX frequency.
# Round to 1 kHz
_freq = round(telemetry['f_centre']/1000.0)
# Convert to MHz.
_telem['freq'] = "%.3f MHz" % (_freq/1e3)
# Add the telemetry information to the global telemetry store
if _telem['id'] not in flask_telemetry_store:
flask_telemetry_store[_telem['id']] = {'timestamp':time.time(), 'latest_telem':_telem, 'path':[], 'track': GenericTrack()}