Fix log_to_kml.py to handle log file header line.

pull/274/head
Mark Jessop 2020-05-21 20:08:00 +09:30
rodzic 5fd675c188
commit 50b684f26b
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -54,6 +54,10 @@ def read_telemetry_csv(filename,
# Split line by comma delimiters.
_fields = line.split(delimiter)
if _fields[0] == 'timestamp':
# First line in file - header line.
continue
# Attempt to parse fields.
_datetime = parse(_fields[datetime_field])
_latitude = float(_fields[latitude_field])