kopia lustrzana https://github.com/projecthorus/radiosonde_auto_rx
Merge pull request #231 from darksidelemm/testing
Display estimated sonde frequency in web GUI, if available.pull/234/head
commit
8e6a09fb88
|
@ -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
|
||||
|
|
|
@ -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()}
|
||||
|
|
Ładowanie…
Reference in New Issue