From 2a525336e3e8ab8bd6a6325f2b2ab0cf117ecfee Mon Sep 17 00:00:00 2001 From: Stefal Date: Tue, 21 Feb 2023 21:59:56 +0100 Subject: [PATCH] get gps_time from rtkrcv. I don't understand why this code disapeared. --- web_app/RtkController.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web_app/RtkController.py b/web_app/RtkController.py index 9d7b6e15..fb2df28e 100644 --- a/web_app/RtkController.py +++ b/web_app/RtkController.py @@ -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: @@ -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 = {}