mirror of
https://github.com/liberatedsystems/Sideband_CE.git
synced 2024-09-03 04:13:27 +02:00
Map marker drawing
This commit is contained in:
parent
179ebe7cec
commit
71234d9b9d
@ -3081,10 +3081,20 @@ class SidebandApp(MDApp):
|
|||||||
earliest = time.time() - self.sideband.config["map_history_limit"]
|
earliest = time.time() - self.sideband.config["map_history_limit"]
|
||||||
telemetry_entries = self.sideband.list_telemetry(after=earliest)
|
telemetry_entries = self.sideband.list_telemetry(after=earliest)
|
||||||
changes = False
|
changes = False
|
||||||
|
|
||||||
|
# Add own marker if available
|
||||||
|
|
||||||
for telemetry_source in telemetry_entries:
|
for telemetry_source in telemetry_entries:
|
||||||
skip = False
|
skip = False
|
||||||
|
|
||||||
if telemetry_source in self.map_markers:
|
# TODO: Remove
|
||||||
|
RNS.log("Processing telemetry for "+RNS.prettyhexrep(telemetry_source), RNS.LOG_WARNING)
|
||||||
|
|
||||||
|
if telemetry_source == self.sideband.lxmf_destination.hash:
|
||||||
|
# TODO: Remove
|
||||||
|
RNS.log("Skipping own telemetry", RNS.LOG_WARNING)
|
||||||
|
skip = True
|
||||||
|
elif telemetry_source in self.map_markers:
|
||||||
marker = self.map_markers[telemetry_source]
|
marker = self.map_markers[telemetry_source]
|
||||||
newest_timestamp = telemetry_entries[telemetry_source][0][0]
|
newest_timestamp = telemetry_entries[telemetry_source][0][0]
|
||||||
if newest_timestamp <= marker.latest_timestamp:
|
if newest_timestamp <= marker.latest_timestamp:
|
||||||
|
Loading…
Reference in New Issue
Block a user