mirror of
https://github.com/liberatedsystems/openCom-Companion.git
synced 2024-11-22 13:30:36 +01:00
Cleanup
This commit is contained in:
parent
e37214f46d
commit
10a1f32057
@ -3096,7 +3096,6 @@ class SidebandApp(MDApp):
|
||||
self.location_error_dialog.dismiss()
|
||||
|
||||
def map_show(self, location):
|
||||
RNS.log(str(location), RNS.LOG_WARNING)
|
||||
if hasattr(self.root.ids.map_layout, "map") and self.root.ids.map_layout.map:
|
||||
self.root.ids.map_layout.map.lat = location["latitude"]
|
||||
self.root.ids.map_layout.map.lon = location["longtitude"]
|
||||
@ -3175,7 +3174,6 @@ class SidebandApp(MDApp):
|
||||
retain_own = True
|
||||
|
||||
if not own_address in self.map_markers:
|
||||
RNS.log("Adding own marker", RNS.LOG_WARNING)
|
||||
marker = self.map_create_marker(own_address, own_telemetry, own_appearance)
|
||||
if marker != None:
|
||||
self.map_markers[own_address] = marker
|
||||
|
@ -751,7 +751,6 @@ class SidebandCore():
|
||||
for pt in pts:
|
||||
try:
|
||||
t = Telemeter.from_packed(pt[1]).read_all()
|
||||
RNS.log(str(t), RNS.LOG_WARNING)
|
||||
if "location" in t:
|
||||
l = t["location"]
|
||||
if "latitude" in l and "longtitude" in l:
|
||||
@ -1145,7 +1144,6 @@ class SidebandCore():
|
||||
if "snr" in physical_link: remote_telemeter.sensors["physical_link"].snr = physical_link["snr"]
|
||||
if "q" in physical_link: remote_telemeter.sensors["physical_link"].q = physical_link["q"]
|
||||
remote_telemeter.sensors["physical_link"].update_data()
|
||||
RNS.log("PACKED: "+str(remote_telemeter.read_all()), RNS.LOG_WARNING)
|
||||
|
||||
query = "INSERT INTO telemetry (dest_context, ts, data) values (?, ?, ?)"
|
||||
data = (context_dest, telemetry_timestamp, telemetry)
|
||||
|
Loading…
Reference in New Issue
Block a user