Update gps_client.py write to file

master-psag-continuous
Alan Johnston 2 weeks ago committed by GitHub
parent 53251a1c9d
commit e39495ace5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -80,11 +80,6 @@ while True:
lon = 0 lon = 0
alt = 0 alt = 0
time.sleep(2) time.sleep(2)
# exit(0)
try:
inp = input()
print("%d %.6f %.6f %.1f" % (mode, lat, lon, alt))
# print(inp)
except:
print("Python error getting input!")
with open('gps_latest.txt', 'w') as file:
file.write("%d %.6f %.6f %.1f" % (mode, lat, lon, alt))

Loading…
Cancel
Save

Powered by TurnKey Linux.