Create gpstest.py

This commit is contained in:
James Devine 2017-10-29 18:59:14 +01:00 committed by GitHub
parent d6ef8b1697
commit afe5284c82
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

9
readingData/gpstest.py Normal file
View file

@ -0,0 +1,9 @@
import serial
gps = serial.Serial("/dev/ttyACM0", baudrate = 9600)
while True:
line = gps.readline()
data = line.split(",")
if data[0] == "$GPRMC":
print line