Commit 3b33f727 authored by Mohd Bilal's avatar Mohd Bilal
Browse files

changed frequency settings

parent 2f589c6a
......@@ -55,6 +55,9 @@ class TIMGSNClient:
satellites = list(filter(lambda s: s !=None,
map(lambda u: u.get_satellite(norad), self.users)))
satellite = satellites[0] if satellites else None
freq = overpass['satellite_frequency']
if satellite:
freq = satellite.get_frequency()
start = overpass['start_date_str'] + ' ' + overpass[
'start_time_str']
end = overpass['end_date_str'] + ' ' + overpass['end_time_str']
......@@ -63,7 +66,7 @@ class TIMGSNClient:
"uid": uid,
"contact_type": contact_type,
"norad": norad,
"satellite_frequency": overpass['satellite_frequency'],
"satellite_frequency": freq,
"start": start,
"end": end,
"updated_on": updated_on,
......
......@@ -39,7 +39,7 @@ class Station(ThreadedModule):
self.longitude = longitude
self.height = height
self.el_min = el_min
self.schedule = {}
self.schedule = {"timgsn":[], "local": []}
self.owner = None
self._is_setup = False
self.scheduling_horizon = kwargs[
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment