Skip to content

Commit

Permalink
get gps_time from rtkrcv.
Browse files Browse the repository at this point in the history
I don't understand why this code disapeared.
  • Loading branch information
Stefal committed Feb 21, 2023
1 parent d271a70 commit 2a52533
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions web_app/RtkController.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ def getObs(self):
sat_name_index = header.index("SAT")
sat_level_index = header.index("S1")
sat_input_source_index = header.index("R")
sat_time_index = header.index("TIME(GPST)")

if len(obs) > (header_index + 1):
# we have some info about the actual satellites:
Expand All @@ -295,14 +296,17 @@ def getObs(self):
if len(spl) > sat_level_index:
name = spl[sat_name_index]
level = spl[sat_level_index]
gps_time = spl[sat_time_index]

# R parameter corresponds to the input source number
if spl[sat_input_source_index] == "1":
# we consider 1 to be rover,
self.obs_rover[name] = level
self.obs_rover["gps_time"] = gps_time
elif spl[sat_input_source_index] == "2":
# 2 to be base
self.obs_base[name] = level
self.obs_base["gps_time"] = gps_time

else:
self.obs_base = {}
Expand Down

0 comments on commit 2a52533

Please sign in to comment.