„measurement_main.py“ ändern
Changes GPS monitoring to GPRMC.
This commit is contained in:
2
measurement_main.py
Executable file → Normal file
2
measurement_main.py
Executable file → Normal file
@@ -247,7 +247,7 @@ def monitor_gps(ser, output_file):
|
||||
while ser.is_open:
|
||||
nmea_sentence = ser.readline() #GPRMC
|
||||
nmea_str = nmea_sentence.decode("utf-8")
|
||||
if nmea_str.startswith("$GPGGA"):
|
||||
if nmea_str.startswith("$GPRMC"):
|
||||
write_to_file(output_file, nmea_str)
|
||||
except:
|
||||
if not ser.is_open:
|
||||
|
||||
Reference in New Issue
Block a user