NMEA0183 weiter programmiert
This commit is contained in:
@@ -252,6 +252,10 @@ def rxd_gps(devname, devspeed):
|
||||
if msg.sentence_type == 'GLL':
|
||||
boatdata.setValue("LAT", msg.latitude)
|
||||
boatdata.setValue("LON", msg.longitude)
|
||||
if msg.sentence_type == 'GSV':
|
||||
# Satellites in view
|
||||
# TODO
|
||||
pass
|
||||
else:
|
||||
print(msg)
|
||||
print(msg.fields)
|
||||
@@ -731,8 +735,10 @@ if __name__ == "__main__":
|
||||
t_rxd_0183.join()
|
||||
if cfg['gps']:
|
||||
t_rxd_gps.join()
|
||||
if cfg['net']:
|
||||
if cfg['network']:
|
||||
t_rxd_net.join()
|
||||
if not cfg['simulation'] and cfg['bme280']:
|
||||
t_data.join()
|
||||
print("Another fine product of the Sirius Cybernetics Corporation.")
|
||||
|
||||
print(boatdata)
|
||||
|
||||
Reference in New Issue
Block a user