You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Print to terminal and log to archive #TODO: why archive?
Altitude: {}""".format(gps.satellites_in_use, gps.hdop, latitude, longitude, gps.altitude) # Process GPS location timestamp = TIME_ISO8601_FMT.format(*time.gmtime()) # get current time in desired format lst_to_log = [timestamp, latitude, longitude, self.gps.altitude] str_lst_to_log = list(map(str, lst_to_log)) # cast to string line_to_log = ','.join(str_lst_to_log) + '\n' # Print to terminal and log to archive #TODO: why archive? sys.stdout.write(s.GPS + " - " + line_to_log) with open(s.archive_path + s.GPS + '.csv', 'a') as f_archive: f_archive.write(line_to_log) if False: #TODO re-enable lora? lora is not False: # get year and month from timestamp year_month = timestamp[2:4] + ","+timestamp[5:7] +','
bbe46eec407b0c5748e7ec3e282f8efa2bacb275
The text was updated successfully, but these errors were encountered:
why archive?
PyonAir-pycom/code/lib/GpsSIM28.py
Line 245 in 9fcaa24
bbe46eec407b0c5748e7ec3e282f8efa2bacb275
The text was updated successfully, but these errors were encountered: